Why unicode string can't be converted?
2 posts in topic
Flat View  Flat View

Posted By:   vernon_wu
Posted On:   Tuesday, January 13, 2004 04:09 PM

When I use an unicode string in the resource bundle property file, the string is shown up properly in JPS files. New, I have the unicode string directively in JSP file, the string is shown what it is, but not in the Language text. What is wrong here?


Re: Why unicode string can't be converted?

Posted By:   Arash_Farzam  
Posted On:   Wednesday, March 3, 2004 10:58 AM

As I know you can't use unicode character in .properties files and these files can just store ASCII characters . but when you need spacial character like Arabic or Persian you must use u[unicode number in HEX] . then you should use InputStreamReader for reading these none-unicode character and converting these .

check it out :

Converting Non-Unicode Text

there is also a utility in SDK that could help you to converting unicode text to uXXXXuXXXX... characters. this utility is native2ascii.exe :

%%in native2ascii MyUnicodeText.txt Ascii.txt

Arash Farzam

Re: Why unicode string can't be converted?

Posted By:   Hendrik_Schreiber  
Posted On:   Monday, February 2, 2004 06:43 AM

Can you please post an example that illustrates your problem (one that contains your page directive)?
About | Sitemap | Contact