you should turn your resource file to UTF-8 encoding using native2ascii
command.
that command locates in your-jdk-home\bin directory.
detail command line is listed below:

native2ascii ApplicationResources_zh.properties
ApplicationResources_zh.propertiesX

the first parameter is source file,second is destination file. Use the
destination file as your resource file.

Many articles introduce that the encodeing parameter should be specified
like following:

native2ascii -encoding UTF-8 ApplicationResources_zh.properties
ApplicationResources_zh.propertiesX
.
but if so, an exception would be thrown.I dont know what reason causes the
exception?

of course,you use first command and should be OK.


hope helps for you.


Laker




----- Original Message -----
From: "Struts Newsgroup" <@[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 15, 2002 9:40 PM
Subject: I18N Problem with Chinese Character


> Subject: I18N Problem with Chinese Character
> From: "Liu Yan" <[EMAIL PROTECTED]>
>  ===
> hi List,
>
> I am using struts-1.0.2 with WebLogic 6.1-sp2. For an I18N project, I
> followed the steps:
>
> 1) I created ApplicationResources.properties and
> ApplicationResources_zh.properties files to store strings.
> 2) The whole project is using UTF-8 encoding.
> 3) On the beginning of each JSP page, add:
>    <%@ page contentType="text/html; charset=UTF-8" %>
>
> For static Chinese character in JSP page, this setting goes well. But when
I
> tried to use:
>
> <bean:message key="prompt.username"/>
>
> to get some strings from ApplicationResources_zh.properties file, the
output
> is corrupted.
>
> I am suspecting this is the <bean:message> taglib's problem, but decided
to
> drop a letter here for a quick answer. Am I doing something wrong or I
have
> to wait for the upcoming 1.1 beta release?
>
> Regards!
> Liu Yan
>
>
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to