You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Richard Jones <ri...@ub.uib.no> on 2005/08/29 10:11:38 UTC
Character Encoding question
Hi All,
I am having problems with Scandinavian characters on my system and am
attempting to isolate the problem; any help would be greatly
appreciated.
The problem manifests when forms are posted containing Scandinavian
characters. In some cases these characters are de/encoded correctly and
in other cases they are replaced by strings of other special characters.
The system that I am working with aims to use UTF-8 encoding, and there
are meta elements on all the pages to this effect.
I have enabled the RequestDumperValve which shows that the characters
are incorrectly decoded by the time they reach this stage of processing.
I have noticed a correlation (although not necessarily a relationship)
between whether the characters are correctly decoded and whether the
request is reporting using:
contentType=text/html;charset=ISO-8859-1
or incorrectly decoded when:
contentType=text/html;charset=UTF-8
(This comes from the part of the RequestDumperValve output which is
separated from the main request part by two dashed lines).
I have tried modifying the Connector for the service by adding
URIEncoding="UTF-8"
and experimented with both:
useBodyEncodingForURI="true" and useBodyEncodingForURI="false"
with no luck.
Does anyone have any experience or advice that might point me in the
right direction. It is entirely possible that this problem is /not/ a
tomcat issue, but I am running out of ideas here.
PS, sorry for the previous partial post - I just discovered a new
keyboard shortcut by accident!
Best Wishes,
--
Richard
-------
Richard Jones |
Overingeniør | Senior Engineer
Universitetsbiblioteket i Bergen | University of Bergen Library
e: richard.jones@ub.uib.no
t: +47 55 58 25 37
BORA: http://bora.uib.no/
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: Character Encoding question
Posted by Manfred Steurer <ma...@gamed.com>.
Just a guess:
Check the format of the .jsp-files. I had similar problems and solved
them by converting the jsp-files to UTF-8.
- Manfred
Richard Jones wrote:
>Hi All,
>
>I am having problems with Scandinavian characters on my system and am
>attempting to isolate the problem; any help would be greatly
>appreciated.
>
>The problem manifests when forms are posted containing Scandinavian
>characters. In some cases these characters are de/encoded correctly and
>in other cases they are replaced by strings of other special characters.
>The system that I am working with aims to use UTF-8 encoding, and there
>are meta elements on all the pages to this effect.
>
>I have enabled the RequestDumperValve which shows that the characters
>are incorrectly decoded by the time they reach this stage of processing.
>I have noticed a correlation (although not necessarily a relationship)
>between whether the characters are correctly decoded and whether the
>request is reporting using:
>
>contentType=text/html;charset=ISO-8859-1
>
>or incorrectly decoded when:
>
>contentType=text/html;charset=UTF-8
>
>(This comes from the part of the RequestDumperValve output which is
>separated from the main request part by two dashed lines).
>
>I have tried modifying the Connector for the service by adding
>
>URIEncoding="UTF-8"
>
>and experimented with both:
>
>useBodyEncodingForURI="true" and useBodyEncodingForURI="false"
>
>with no luck.
>
>Does anyone have any experience or advice that might point me in the
>right direction. It is entirely possible that this problem is /not/ a
>tomcat issue, but I am running out of ideas here.
>
>PS, sorry for the previous partial post - I just discovered a new
>keyboard shortcut by accident!
>
>Best Wishes,
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org