tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Laurent Féral-Pierssens <>
Subject RE: Special characters
Date Mon, 23 Jun 2003 00:20:25 GMT


I had this problem quite a few months back for the first time and was
not able to solve it... Untill It surfaced again last week.

The solution I used is fairly simple, here is my entry for this issue.
Let me know if it works.


Webapp does not recognize accented characters (eg. é,è,à...) and display
a question mark instead.

This is a locale issue. Characters are captured properly, only when they
are displayed they get modified to a '?'. There is no loss of data when
using a system with this issue.

To fix the problem, you need to set your LANG OS specific environment
variable to the language you use. 
Try adding this line:
export LANG=en_CA
to your tomcat/bin/ and restart tomcat.

It should look like this:
	# OS specific support.  $var _must_ be set to either true or
	case "`uname`" in
	CYGWIN*) cygwin=true;;
==>>	export LANG=en_CA
	# resolve links - $0 may be a softlink

-----Original Message-----
From: David Del Sacramento [] 
Sent: June 12, 2003 10:04 AM
Subject: Special characters


I installed Tomcat 4.1.24 in a Solaris server and I'm
using a JSP form that received special characters
like: á é Ó É ú. The action of the form send an e-mail
(using javamail). When de tomcat process the e-mail
changes the special characters with "?".

I used the directive 
<%@ page contentType="text/html; charset=iso-8859-1"
but it isn't working.

I installed Tomcat 4.0.6 and the error is the same.

I used and and
isn´t work too.

Can you help me?


Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).

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

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

View raw message