tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ben Bookey" <>
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

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



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

<body  bgcolor="#F3F3F3">
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">

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


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message