You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Chris Pat <cp...@yahoo.com> on 2007/12/08 21:14:48 UTC

I18n Struts problem

Hello
In my app I write the labels with <bean:message key="what.ever.label"/> and I have an ApplicationProperties.properties, ApplicationProperties_el.properties with the modified \uXXXx encoding of the labels in language.  I then used this for local switching and I still get the ????.  Am I missing something?  tia.

Re: I18n Struts problem

Posted by Paul Benedict <pb...@apache.org>.
You probably are not using UTF-8 encoding on your pages. This can be
configured using the JSP page directive.

On Dec 11, 2007 7:57 AM, Laurie Harper <la...@holoweb.net> wrote:

> Chris Pat wrote:
> > Hello
> > In my app I write the labels with <bean:message key="what.ever.label"/>
> and I have an ApplicationProperties.properties,
> ApplicationProperties_el.properties with the modified \uXXXx encoding of the
> labels in language.  I then used this for local switching and I still get
> the ????.  Am I missing something?  tia.
>
> Do you get '????' for any locale, or only when you try to use the
> specific local? If the former, you don't have your message resources
> configured correctly, and it isn't finding either .properties file. You
> should be seeing a warning or error during startup of your Struts app in
> that case.
>
> If the problem only occurs when you switch locale, it may be a problem
> with how you're specifying the locale or it could be a problem with the
> .properties file itself (e.g. saved with wrong encoding).
>
> You'll need to provide more detail about your configuration and observed
> behaviour to get more specific diagnostics.
>
> L.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

Re: I18n Struts problem

Posted by Laurie Harper <la...@holoweb.net>.
Chris Pat wrote:
> Hello
> In my app I write the labels with <bean:message key="what.ever.label"/> and I have an ApplicationProperties.properties, ApplicationProperties_el.properties with the modified \uXXXx encoding of the labels in language.  I then used this for local switching and I still get the ????.  Am I missing something?  tia.

Do you get '????' for any locale, or only when you try to use the 
specific local? If the former, you don't have your message resources 
configured correctly, and it isn't finding either .properties file. You 
should be seeing a warning or error during startup of your Struts app in 
that case.

If the problem only occurs when you switch locale, it may be a problem 
with how you're specifying the locale or it could be a problem with the 
.properties file itself (e.g. saved with wrong encoding).

You'll need to provide more detail about your configuration and observed 
behaviour to get more specific diagnostics.

L.


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