struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jason Chaffee <JasonChaf...@metatv.com>
Subject RE: Can not read i18n properties file
Date Tue, 01 May 2001 18:18:20 GMT
That would be my guess as well.  Take a look at the html source that is
being produced and see if there is a charset header, if there isn't copy the
source to a static file and add a charset header and try to load it in IE,
this should give you your answer.

-----Original Message-----
From: shunhui zhu [mailto:shunhui_zhu@yahoo.com]
Sent: Tuesday, May 01, 2001 11:18 AM
To: struts-user@jakarta.apache.org
Subject: Re: Can not read i18n properties file


Pau, I did a similar test for a chinese version with
resource_zh.properties. If I change my browser
language preferences (in IE), I do get the chinese
version, although to display it correctly, I needed to
select chinese encoding in IE's view menu. My guess is
that the response header is not setting the
"Content-language" header or the charset header, but I
haven't looked into it. 

Shunhui
--- Sean Pau <seanpau@yahoo.com> wrote:
> I test creating resource properties file for
> Japanese language. I use
> Windows Notepad and edit resources_ja.properties and
> save it under UTF-8 and
> Unicode format. Struts could display when the file
> is in UTF-8 format but
> the text came out rubbish. When the file is in
> Unicode format, Struts is not
> reading it, instead it reads the default
> resources.properties file. Both
> UTF-8 and Unicode format resources_ja.properties
> files display the Japanese
> text OK when I drag it into IE and also WordPad. Pls
> help. Thanks
> 
> 
>
_________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at
> http://mail.yahoo.com
> 


__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/

Mime
View raw message