You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Comain Chen <co...@gmail.com> on 2005/12/04 08:04:00 UTC

ApplicationResources problem

It is said that we must use a applicationresources.properties file to format
jsp view. And should create one file to a specific language local. So, maybe
I have to files, one is applicationresources.properties And
the other is applicationresources_ZH_CN.properties. But firstly, how does
struts decide which version to render when I am using bean:message in the
jsp pages?

And since I an now coding in myeclipse, it seems that every time a typed a
Chinese word in the property file , it will change it to ?, means that it
does not support other character sets? So, then I code
the property file in ue, but when the jsp page displays it is still
non-meaningful words.

Can any one help?

--
Thanks for reading
comain chen

Re: ApplicationResources problem

Posted by Comain Chen <co...@gmail.com>.
 Thanks, :-)

2005/12/4, Bahadir Yagan <ba...@mht.com.tr>:
>
> Here is the way I handle this problem for Turkish locale.
>
> Write the resources file in UTF-8. Name it something like
> ApplicationResources.properties-orig
> Convert it using native2ascii
>
> native2ascii -encoding UTF-8 ApplicationResources.properties-orig
> ApplicationResources.properties
>
> You have to run this every time you changed something in the original
> file.
>
>
> Comain Chen wrote:
>
> >It is said that we must use a applicationresources.properties file to
> format
> >jsp view. And should create one file to a specific language local. So,
> maybe
> >I have to files, one is applicationresources.properties And
> >the other is applicationresources_ZH_CN.properties. But firstly, how does
> >struts decide which version to render when I am using bean:message in the
> >jsp pages?
> >
> >And since I an now coding in myeclipse, it seems that every time a typed
> a
> >Chinese word in the property file , it will change it to ?, means that it
> >does not support other character sets? So, then I code
> >the property file in ue, but when the jsp page displays it is still
> >non-meaningful words.
> >
> >Can any one help?
> >
> >--
> >Thanks for reading
> >comain chen
> >
> >
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>


--
Thanks for reading
comain chen

Re: ApplicationResources problem

Posted by Bahadir Yagan <ba...@mht.com.tr>.
Here is the way I handle this problem for Turkish locale.

Write the resources file in UTF-8. Name it something like 
ApplicationResources.properties-orig
Convert it using native2ascii

native2ascii -encoding UTF-8 ApplicationResources.properties-orig 
ApplicationResources.properties

You have to run this every time you changed something in the original file.


Comain Chen wrote:

>It is said that we must use a applicationresources.properties file to format
>jsp view. And should create one file to a specific language local. So, maybe
>I have to files, one is applicationresources.properties And
>the other is applicationresources_ZH_CN.properties. But firstly, how does
>struts decide which version to render when I am using bean:message in the
>jsp pages?
>
>And since I an now coding in myeclipse, it seems that every time a typed a
>Chinese word in the property file , it will change it to ?, means that it
>does not support other character sets? So, then I code
>the property file in ue, but when the jsp page displays it is still
>non-meaningful words.
>
>Can any one help?
>
>--
>Thanks for reading
>comain chen
>
>  
>



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org