PROTECTED]]
Sent: 14 February 2002 08:40
To: Struts Users Mailing List
Cc: [EMAIL PROTECTED]
Subject: Re: Character Encoding wrong just for ApplicationResources!
Thanks for your response.
But I have already saved the ApplicationResource file in Unicode but the
same results!!
I have tried saving
Hello All
I have added the following to JSP files
META http-equiv=Content-Type content=text/html, charset=UTF-8
%@ page contentType=text/html; charset=UTF-8 %
html:html locale=true
Change the locale in an Action to iw_IL
And get:
Constant strings inserted in JSP in Hebrew are OK.
Just the
your properties file have to be written in Unicode encoding, not the native
encoding, or else java will screw your characters up, since java can only deal
with unicode
Hertzel Karbasi - OPTinity eBusiness Solutions wrote:
Hello All
I have added the following to JSP files
META
or you can covert your properties file strings from native to unicode using this
method
return new String(oldString.getBytes(), encoding);
where encoding is the native encoding u used in your properties file
more 'bout charset encoding/decoding on this page :
4 matches
Mail list logo