We’ve recently had a problem where we wanted to produce a website in multiple languages including Russian, Czech, Romanian, and other eastern European languages. No problems, we thought, we can just use Java properties files and the fmt:message JSTL tags.
I’ve been having problems with putting unicode strings into the subject of emails sent using javax.mail.
In the end, the solution was very simple and I found it here:
As long as you use “UTF-8″ and not “UTF8″ it all seems to work fine, so the code you need is:
Properties props [...]
Further to my post about creating properties files when I had text files in unicode, we decided that the best thing was to have a web application to do the conversion. You can then just paste in whatever text you want to encode and it tells you what the java escaped text string(s) should be.
[...]
We recently had what sounded like a simple job to do: produce a questionnaire in several languages including Russian and store the results in a MySQL database. Now I could have chosen PHP to produce the questionnaire, but I thought that using Java resource bundles would be the easiest. I knew that using the JSTL [...]
If you enjoyed reading or using this, please consider donating
Recent Comments
Tags
ADSI Architecture C++ CSS CUPS databases Debugging design Drag & Drop EEE PC Entourage Firefox free tools Graphs Groovy Hardware Hibernate HTML Internationalisation Internet Explorer Java Javascript JNI JSP LDAP Lisp Localisation Mac MacBook Mac OS X Mail Mobile Broadband MySQL Occam Operating Systems Parallels Persistence printing requirements Rules security UTF8 Web Web development Windows
