if has("win32unix") || has("win64unix")
let s:jar_path = substitute(system('cygpath -w "'.s:jar_path.'"'), "\n", '', '')
let tmpfname = substitute(system('cygpath -w "'.tmpfname.'"'), "\n", '', '')
endif
let cmd = 'java -jar "'.s:jar_path.'" -charset utf-8 -tutxt "'.tmpfname.'"'
This works fine on my PC and hope you can fix this problem.