Open GoogleCodeExporter opened 8 years ago
From the Properties javadoc you can see that that you have to use unicode
escape sequences for special characters.
See:
http://docs.oracle.com/javase/6/docs/api/java/util/Properties.html
"The load(Reader) / store(Writer, String) methods load and store properties
from and to a character based stream in a simple line-oriented format specified
below. The load(InputStream) / store(OutputStream, String) methods work the
same way as the load(Reader)/store(Writer, String) pair, except the
input/output stream is encoded in ISO 8859-1 character encoding. Characters
that cannot be directly represented in this encoding can be written using
Unicode escapes ; only a single 'u' character is allowed in an escape sequence.
The native2ascii tool can be used to convert property files to and from other
character encodings."
See
http://docs.oracle.com/javase/6/docs/technotes/tools/windows/native2ascii.html
Original comment by axelclk@gmail.com
on 25 May 2013 at 3:14
It would be nice if there was a warning when the unicode characters are not
escaped. I would expect unicode works as it is nowadays. Not to mention, that
the properties files now are not readable.
Original comment by rmyeid
on 25 May 2013 at 3:44
Original issue reported on code.google.com by
rmyeid
on 20 May 2013 at 10:29