tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ben Bookey" <ben.boo...@gistec-online.de>
Subject Real problem posting &Euro symbol from jsp page, using TC 5.0
Date Mon, 06 Sep 2004 10:18:30 GMT

Dear TC profis, (allistair and Nikola)

I have had this problem for a week (aaahhh!), and would really appreciate
ANY help or pointers to what I may be doing wrong.

When I post a € value from a form from either Netscape 6.0 or IE 6.0, and do
a system.out.println in my test
servlet there is always something other than the Euro symbol arriving in my
test servlet.  Most often is a ? which indicates the browser-client
is posting using ISO8859-1

Please take a look at the simple jsp pages below, which is using UTF-8. ( in
another test I have also changed all the various
encoding parameters to ISO8859-15, but there is still no Euro symbol on the
server).!

PLEASE......................................... WHAT AM I DOING WRONG ??

:-(

Ben

'===========================================================================
======================================================
<%@ page language="java"%>
<%@ page contentType="text/html;charset=utf-8"%>
<%@ page pageEncoding="utf-8"%>
<html>
<head>
     <META NAME="GENERATOR" CONTENT="test page for encoding"
http-equiv="Content-Type" content="text/html" charset='utf-8'>
     <title>encoding data test.</title>
</head>

<body  bgcolor="#F3F3F3">
<br><br><br>
<%
String reqURL = "/InGeoWebEntryTool/servlet/EncodingValidationServlet";
String strEncodeTest="";
%>
<FORM action="<%=reqURL%>" ACCEPTCHARSET='utf-8' method="post">
 <input  type="text" name="encodeTest" value="<%=strEncodeTest%>" size="98">
 <input type="submit" value="update" style="WIDTH: 120px">
</FORM>
</body>
</html>

'===========================================================================
===================================================
Here are some system properties from my server.

file.encoding = Cp1252
java.specification.version = 1.4
catalina.home = D:\Program Files\NetBeans3.6\jakarta-tomcat-5.0.19
java.version = 1.4.2
sun.cpu.endian = little
sun.io.unicode.encoding = UnicodeLittle

'===========================================================================
===================================================


---------------------------------------------------------------------
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