WebSphere Portal Server - problem with NLS???

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere Portal Server > April 2006 > problem with NLS???





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author problem with NLS???

2006-04-27, 8:07 am

Hi,
I have plugged new language into Portal Enable 5.1 extend for multiplatform. My *.properties files have encoded in system-default(1252, iso-8859-1) and typed character with NCR Demical. The results that: about 95% Portal UI have expected text. But some te
xt have bean fitered the chararater '&' with '&' and then it could not be displayed OK. I have tried to use properties file with UTF-8 encoding and type character with UTF-8, but after it is rendering to brower, it is two times encoded with UTF-8, so
did not have needed results.
Help me please!!
Thanks very much.
Michael Harris

2006-04-27, 8:07 am

The proper way to encode characters in a properties file is to use the
\udddd format with the Unicode values. This enables the Java string to
contain the real unicode character that you want. The native2ascii tool
can help generate these values for you if you want to edit the text in a
platform encoding such as cp1252 and convert to the \udddd format for
loading in your portlet at runtime.

See here:
http://java.sun.com/j2se/1.3/docs/t...tive2ascii.html

Or here if you are using ANT to build your portlet:
http://ant.apache.org/manual/Option...tive2ascii.html

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com