Hi,
Could someone clearly explain me
how exactly tomcat 5.0.28 handles
character encodings in requests.
Especialy I'm interested in method POST character handling.
Recently I've posted question about that
but didn't get answer so i did
little more investigation
and tested tomcat 5.0.28 with jdk 1.4.2_05,1.4.2_04
1.4.0_04,1.4.1_07 tried to write all pages in UTF-8
set meta header content-type to UTF-8
set encodiong UTF-8 in jsp <%page %> tag
then pass -Dfile.encoding=UTF-8 jvm in startup parameters
nothing helps, also tested this configuration under linux
with LANG set to pl_PL (ISO-8859-2) results are the same
I've downloaded tomcat 4.1.30 did the same test no difference
did the same test with ISO-8859-2 encoding also without success
It seems that whatever I do tomcat always encodes/decodes charcters
returned from browser in ISO-8859-1 even if they are in body part of request
(I use method POST in my forms).
searched google like maniac read couple hundrets of posts.
I realy don't understand why this is so hard to set character encoding
corectly.
In some post i've read that iso8859-1 character encoding was hardcoded into
tomcat 4.1.29
Is this realy true ?
do i realy always must write:
new
String(request.getParameter("parameter_name")).getBytes(ISO-8859-1),"whateve
r_encoding_i_need").KC PS. OT: Thinking about switching to Jetty or with this web container also are such problems ? --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
