RE: Can not read i18n properties file

2001-05-01 Thread Sean Pau
Title: RE: Can not read i18n properties file



It works when I set the 
html meta Content-Type charset to 
UTF-8. thanks

  -Original Message-From: Jason Chaffee 
  [mailto:[EMAIL PROTECTED]]Sent: Wednesday, 02 May, 2001 2:18 
  AMTo: '[EMAIL PROTECTED]'Subject: RE: Can 
  not read i18n properties file
  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:[EMAIL PROTECTED]] 
  Sent: Tuesday, May 01, 2001 11:18 AM To: [EMAIL PROTECTED] 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 
  <[EMAIL PROTECTED]> 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/ 



Re: Can not read i18n properties file

2001-05-01 Thread Greg Murray


Hi all,
I have encountered this behavior in the past .properties files
must be converted to ascii using the java sdk native to ascii
before the display. Once converted your characters should be viewable.
Also remember to set the Content-Type as specified.

 
Jason Chaffee wrote:
 
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:[EMAIL PROTECTED]]
Sent: Tuesday, May 01, 2001 11:18 AM
To: [EMAIL PROTECTED]
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 <[EMAIL PROTECTED]> 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/



RE: Can not read i18n properties file

2001-05-01 Thread Jason Chaffee
Title: RE: Can not read i18n properties file





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:[EMAIL PROTECTED]]
Sent: Tuesday, May 01, 2001 11:18 AM
To: [EMAIL PROTECTED]
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 <[EMAIL PROTECTED]> 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/





Re: Can not read i18n properties file

2001-05-01 Thread shunhui zhu

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 <[EMAIL PROTECTED]> 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/



Can not read i18n properties file

2001-05-01 Thread Sean Pau

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