mgchetla / jmesa

Automatically exported from code.google.com/p/jmesa
0 stars 0 forks source link

UTF-8 Support in ResourceBundle #227

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I found that ResourceBundle files in utf-8 encoding when reading encoded 
as iso-8859-1, so that the Cyrillic characters are displayed incorrectly. 
here is http://www.thoughtsabout.net/blog/archives/000044.html article 
"Quick and Dirty Hack for UTF-8 Support in ResourceBundle". Could you 
implement something similar in Jmesa?

Original issue reported on code.google.com by stas.agarkov on 5 Nov 2009 at 2:32

GoogleCodeExporter commented 8 years ago
Besides, see link http://bordet.blogspot.com/2007/01/utf-8-handling-for-
resourcebundle-and.html

Original comment by stas.agarkov on 5 Nov 2009 at 2:43

GoogleCodeExporter commented 8 years ago
or before creating the jar file convert the file with the support of the 
Russian 
language in latin1, so the line it looked like this: 
\u041e\u0448\u0438\u0431\u043a\u0430\u0440\u0430\u0431\u043e\u0442\u044b
\u0441\u0431\u0430\u0437\u043e\u0439\u0434\u0430\u043d\u043d\u044b\u0445

Original comment by stas.agarkov on 6 Nov 2009 at 8:11

GoogleCodeExporter commented 8 years ago
To be honest the best thing you could do is submit a patch. The project is 
fairly
easy to get up and running and I have been told that the code is not difficult 
to get
on top of. It is especially difficult for me to duplicate the problems as it 
works
for me.

Here is what I do for building the project and getting the dependencies in.  

http://code.google.com/p/jmesa/wiki/ProjectBuild

Original comment by jeff.johnston.mn@gmail.com on 8 Nov 2009 at 12:51

GoogleCodeExporter commented 8 years ago
patch in attachment
characters encoded as, for example in the file 
jmesaResourceBundle_de.properties on 
line 9

Original comment by stas.agarkov on 8 Nov 2009 at 12:54

Attachments:

GoogleCodeExporter commented 8 years ago
This is great! I will apply the patch first thing tomorrow.

Original comment by jeff.johnston.mn@gmail.com on 8 Nov 2009 at 3:43

GoogleCodeExporter commented 8 years ago
I applied the patch...do you want me to do a build for you? If so send me an 
email at
jeff.johnston.mn@gmail.com.

Original comment by jeff.johnston.mn@gmail.com on 9 Nov 2009 at 6:59

GoogleCodeExporter commented 8 years ago

Original comment by jeff.johnston.mn@gmail.com on 10 Mar 2011 at 10:08