D
Delia
Hi Group,
I set up properties files to match different locales, and use the
resourceBundle.getObject() function to retrieve the correct strings.
This works great, but not with Japanese.
With Japanese, I get a string of unicode characters back from getObject()
that don't seem to correspond to the Japanese characters I have saved in my
..properties file.
I tried saving the .properties file in UTF-8, 16 bit unicode (big and
little endian), but I just get varrying strings of characters that I can't
figure out where they come from.
Example:
I went to babelfish and typed "File".
It came back with a japanese word.
I pasted that japanese word into a .properties file (using windows
notepad.exe) and saved it as UTF-8.
I loaded that string with getObject() and it returned:
ã\u0083\u0095ã\u0082iã\u0082¤ã\u0083«
Whereas the actual unicode values should be:
30D5 30A1 30A4 30EB
I can't figure enough of a relationship between these sets of values to
determine what it's trying to do?
Help?
-Delia
I set up properties files to match different locales, and use the
resourceBundle.getObject() function to retrieve the correct strings.
This works great, but not with Japanese.
With Japanese, I get a string of unicode characters back from getObject()
that don't seem to correspond to the Japanese characters I have saved in my
..properties file.
I tried saving the .properties file in UTF-8, 16 bit unicode (big and
little endian), but I just get varrying strings of characters that I can't
figure out where they come from.
Example:
I went to babelfish and typed "File".
It came back with a japanese word.
I pasted that japanese word into a .properties file (using windows
notepad.exe) and saved it as UTF-8.
I loaded that string with getObject() and it returned:
ã\u0083\u0095ã\u0082iã\u0082¤ã\u0083«
Whereas the actual unicode values should be:
30D5 30A1 30A4 30EB
I can't figure enough of a relationship between these sets of values to
determine what it's trying to do?
Help?
-Delia