Return-Path: Delivered-To: apmail-jakarta-tomcat-dev-archive@apache.org Received: (qmail 44174 invoked from network); 3 Mar 2003 02:21:37 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 3 Mar 2003 02:21:37 -0000 Received: (qmail 15439 invoked by uid 97); 3 Mar 2003 02:23:23 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-dev@nagoya.betaversion.org Received: (qmail 15432 invoked from network); 3 Mar 2003 02:23:23 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 3 Mar 2003 02:23:23 -0000 Received: (qmail 43316 invoked by uid 500); 3 Mar 2003 02:21:27 -0000 Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Developers List" Reply-To: "Tomcat Developers List" Delivered-To: mailing list tomcat-dev@jakarta.apache.org Received: (qmail 43305 invoked from network); 3 Mar 2003 02:21:26 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 3 Mar 2003 02:21:26 -0000 Received: (qmail 15423 invoked by uid 50); 3 Mar 2003 02:23:12 -0000 Date: 3 Mar 2003 02:23:12 -0000 Message-ID: <20030303022312.15422.qmail@nagoya.betaversion.org> From: bugzilla@apache.org To: tomcat-dev@jakarta.apache.org Cc: Subject: DO NOT REPLY [Bug 17578] New: - Jasper2 can't change browser's charset X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17578 Jasper2 can't change browser's charset Summary: Jasper2 can't change browser's charset Product: Tomcat 4 Version: 4.1.18 Platform: All OS/Version: Other Status: NEW Severity: Critical Priority: Other Component: Jasper 2 AssignedTo: tomcat-dev@jakarta.apache.org ReportedBy: echow@macaucabletv.com In a common JSP, if I set the charset by using HTML form, it will automatically change the charset in the browser. For example: <%@ page language="java" contentType="text/html" %> Hello World! Testing... In the above JSP file, if I load it in Tomcat 4.1.8, It can automatically change the charset to UTF-8 in the browser. But after I use Jasper2 to convert the JSP to Java source file and compiled it. It can't, and always set the charset to ISO-8859-1. If I add the charset in the JSP as <%@ page language="java" contentType="text/html; charset=UTF-8" %> I can't display any Far East fonts, such as Chinese. I think Jasper should detect if JSP is setting to use Text/Html, it should detect if there any META data to set the Charset, if there is, following the HTML charset, otherwise set to the default charset ISO-8859-1. --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org