tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Allistair Crossley" <Allistair.Cross...@QAS.com>
Subject RE: JSP/HTML Encoding
Date Tue, 31 Aug 2004 15:08:24 GMT
make sure also that you set file.encoding=utf8 in tomcat's startup options so that the jvm
also operates in that mode.

ADC

> -----Original Message-----
> From: Ben Bookey [mailto:ben.bookey@gistec-online.de]
> Sent: 31 August 2004 16:00
> To: Tomcat User List
> Subject: JSP/HTML Encoding
> 
> 
> 
> 
> Dear List,
> 
> I am having unexpected results when setting the encoding of my
> inputForm.jsp, to iso-8859-15 (changing from
> iso-8859-15 to iso-8859-1 will allow me to use the Euro 
> symbol and a few
> others). When i give a Euro symbol into a form input control, 
> the client
> ends up saving a question-mark instead, which is exactly what 
> happens then I
> leave the standard iso-8859-1 encoding(the jsp default). I am 
> using Tomcat 5
> and Internet Explorer 6.x which supports charset=iso-8859-15.
> 
> Here is my jsp page header attributes.
> 
> <%@ page language="java" errorPage="myErrorPage.jsp"
> pageEncoding="iso-8859-15" contentType="text/html; 
> charset=iso-8859-15"%>
> 
> If by setting the above jsp attributes, do I still need to 
> set (inside the
> <html><head> tag) like this ?
> 
> <meta http-equiv="Content-Type" content="text/html; 
> charset=iso-8859-15"/>
> 
> Another factor which might be affecting the encoding of my 
> input form, is
> that its a page within a frameset, and it could be that the 
> parent frame
> HTML page might be incorrectly pre-determining the encoding 
> of the whole
> frameset overriding the child frame settings.
> 
> 
> kind regards,
> Ben Bookey
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 
> 


<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: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message