This week's book giveaway is in the Agile and Other Processes forum. We're giving away four copies of The Little Book of Impediments (e-book only) and have Tom Perry on-line! See this thread for details.
I started creating a new file using the Notepad editor on Windows XP . The file is then saved as type "Unicode Big Endian"
Next, using the native2ascii utility from JDK 1.4 SDK, I use the following command to convert this file to an ASCII file:
native2ascii -encoding UnicodeBig CustomerResources_zh.ucd CustomerResources_zh.properties
The resulting output CustomerResources_zh.properties contains the required escape code.
I am using this file CustomerResources_zh.properties in my web project.
In my internet explorer, Tools --> Internet Options --> Languages tab, I added the language "Chinese (Hong Kong S.A.R.) [zh-HK]"
When I fire a request to my jsp, I see garbage character in my browser instead of chinese characters.
I tried to even add this line
<%@ page contentType="text/html; charset=utf-8" %>
to top of my jsp file but still no use.
Can you please clarify what I am missing here and how to add i18n support for Chinese locale to my existing Struts based code ?