tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kazuhiro Kazama <kaz...@ingrid.org>
Subject Re: pageEncoding for Shift_JIS doesn't work by using Apache Tomcat/4.1.8-LE-jdk14
Date Wed, 14 Aug 2002 02:28:33 GMT
Hi, David,

I guess that Osamu misunderstand the JSP 1.2 specification. For example,

<%@ page pageEncoding="Shift_JIS" %>

is able to be rewrite the following because contentType attribute's
default value is "text/html";

<%@ page contentType="text/html" pageEncoding="Shift_JIS" %>

and its meaning is the same as the following because HTTP default
charset is "iso-8859-1";

<%@ page contentType="text/html; charset=iso-8859-1" pageEncoding="Shift_JIS" %>

Thus, Osamu's code can't treat Japanese well. 

In Japan, the following codes are generally used in such case;

<%@ page contentType="text/html; charset=Shift_JIS" %>

In conclusion, Tomcat 4.1.8 behavior is legal. JSP 1.2 specification
is reasonable. No problem.

Kazuhiro Kazama (kazama@ingrid.org)	NTT Network Innovation Laboratories

--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message