tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From albrecht andrzejewski <>
Subject Tomcat default encoding character ? Dfile.encoding option mean ?
Date Tue, 07 Oct 2008 20:26:20 GMT
I ran accros the ml archives, and i find some useful posts.

I've almost solved my problem: i can now display the accent (é è à)  
using   request.setCharacterEncoding("UTF-8");

It seems that the default charset for tomcat is ISO 8859 1
The j2ee javadoc says:

"If no charset is specified, ISO-8859-1 will be used."

I was pretty sure that tomcat handles UTF-8 by default, but it's not  
the least for HttpServletResponse objects. Anyway, do you  
know if it's possible to set up a default charset for the wjole tomcat  
response, instead of calling these two methods every time a request  
reach the servlet... ?

I tried to define the CATALINA_OPTS, but perhaps the file encoding is  
different from the request/response encoding.

Créateur - Incubateur Technologique
SITE-EERIE - Parc scientifique G. Besse

Ce message a ete envoye par le serveur IMP de l'EMA.

To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message