Windows DatabaseebooksStatistical Information

LLE10248 : Tomcat 6: Accented characters are lost accessing tomcat web server

Symptom:

Accented characters are lost accessing tomcat web server

Cause:

Tomcat has disabled standard servlet behavior by default. and the server response will not include the encoding bit

Solution:



Tomcat 6 has disabled the standard servlet behavior by default.
To make it work you should add

-Dorg.apache.catalina.STRICT_SERVLET_COMPLIANCE=true

to your startup script. If you don't, the server response will not include the
encoding bit, even if the browser has provided an Accept-Language
header. The symptoms are that accessing tomcat web server will lose any accented characters
(áéí... you know what I mean). Adding this flag should get it fixed.

(http://groups.google.com/group/loom-dev/browse_thread/thread/765327bf10c76aed)

---------------------------------


Tomcat has disabled standard servlet behavior by default. To make encoding work you should add

-Dorg.apache.catalina.STRICT_SERVLET_COMPLIANCE=true

to your startup script. If you don't, the server response will not include the encoding bit, even if the browser has provided an Accept-Language header.



(http://loom.extrema-sistemas.org/doc/1.x/ref/charset)

CONCLUSION:

Poner en las primeras líneas del Catalina.bat:

Put in the first lines of Catalina.bat /catalina.sh:

SET CATALINA_OPTS=-Dorg.apache.catalina.STRICT_SERVLET_COMPLIANCE=true

or the other way, in java properties:

-Dorg.apache.catalina.STRICT_SERVLET_COMPLIANCE=true 

 


Disclaimer:

The information provided in this document is intended for your information only. Lubby makes no claims to the validity of this information. Use of this information is at own risk!
Copyright © 2004-2011 Lubby (V3.0.10 Aug 2011)
Sponsored by Keskon.
Statistical information by Google Analytics