logo       

JISAutoDetect throws Exception on Resin: msg#00051

text.xml.resin.user

Subject: JISAutoDetect throws Exception on Resin

This line:

request.setCharacterEncoding("JISAutoDetect");

run on Resin 2.1.12 throws UnsupportedEncodingException, while
on Tomcat 5.0.19 doesn't. It seems that Resin doesn't use
sun.io.ByteToCharJISAutoDetect class in the charset.jar.

---------------------------
Related question:

Why request.getCharacterEncoding() returns null when requester
document has the line:

<META http-equiv=Content-Type content="text/html; charset=EUC-JP">

? In other words, from where does this method get the encoding info
of the requester document? Why charset entry in the META element
isn't used?

On both Resin and Tomcat the retrun value of the method is null and
the null value is quite useless for I18N related development. And I
believe the charset spec in the META element is a mandatory part of
HTML4 standard(accoding to their HTML validator!).

Thanks in advance for your kind voices.

--
Hiroshi Iwatani

*stop cruelty* Annual number of institutionally euthanized cats and dogs
including kittens and puppies: US 5 million, JP 500 thousand. How about your
country? *for our better karma*
---------------------



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise