Tomcat uses parameter "javaEncoding" in $TOMCAT_HOME/conf/web.xml to define Java file encoding. The default is utf-8. You can change it to your preferred encoding so that the compiled java source from jsp file will use your encoding.
You may have to define a encoding filter. Also you may have to change your OS default locale since JVM and Java Runtime uses system default language environment. It all depends on your system. Hope it helps:). -Yan -----Original Message----- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: May 24, 2004 03:59 To: [EMAIL PROTECTED] Subject: Can I change Tomcat's default character encoding? We are having a host of problems with character encoding at the moment. Somehow between the UI and the Struts Action our euro symbols are being turned into question marks. I have fiddled with the JVM file.encoding, using JSP page directives for content type and much else besides. I thought Java strings were UTF-8 by default. Anyway, I stripped off the JSP page directive for encoding and it appears the tomcat default becomes Latin 1 ISO-8859-1. The euro character does not appear in this charset and I need Cp1252 to be default. Can I change Tomcat's default charset? Thanks ADC <FONT SIZE=1 FACE="VERDANA,ARIAL" COLOR=BLUE> ------------------------------------------------------- QAS Ltd. Developers of QuickAddress Software <a href="http://www.qas.com">www.qas.com</a> Registered in England: No 2582055 Registered in Australia: No 082 851 474 ------------------------------------------------------- </FONT> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]