I don't know if this will help but try to search "charset encoding" at tomcat maillist archive. You will find some tips in there.
Take a look at http://tagunov.tripod.com/i18n/i18n.html (try to contact Anton, if you want).


-----Original Message-----
From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Monday, March 01, 2004 3:47 AM
To: Struts Users Mailing List
Subject: Re: Problems with UTF-8 and forms



On 03/01/2004 12:29 AM Jon Bohm wrote:


BUT if I rewrite my custombean's getValue method it all works fine (except for swedish uppercase letters):

public String getValue()
{
return new String( value.getBytes(), "UTF-8");
}



Still shouldn't be necessary.




Apache Tomcat/5.0.12
Java 1.4.2_01-b06
Struts 1.1 (I think - how do I check?)
Windows XP (I know, I'm a Linuxdude gone bad)



Open up struts.jar in winzip or something and view META-INF/MANIFEST.mf - check implementation-version.


So what does the debugging say at the end of your JSPs? Is your response UTF-8 or iso-xxxx encoded? I bet it says the page content-type is still iso-8859.

How are you setting your struts controller parameter (in struts-config.xml):

<set-property property="contentType"
  value="text/html; charset=UTF-8"/>






--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to