windows - Force Struts1 to use the correct encoding for the resource file -


seems struts1 uses inputstream read i18n resource file(s) instead of reader. there struts.i18n.encoding property in struts2, not find similar settings struts1. is there way force struts1 reading resource file(s) using specific encoding?

also i've noticed in russian version of windows, inputstream uses 'windows-1251' encoding. on english version of windows (even when current language non-unicode programs set russian), java's inputstream (and struts1) uses ansi encoding.

java's -dfile.encoding property effects reader, not inputstream :( there way (maybe setting system variable), force java engine work works on russian version of windows? solve problem.

p.s. aware of native2ascii.exe tool in jdk , solves main problem. makes resource file unreadable in notepade , unf. must keep resource file readable in notepade :(


Comments

Popular posts from this blog

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -