Return-Path: Delivered-To: apmail-jakarta-taglibs-user-archive@apache.org Received: (qmail 31365 invoked from network); 29 Nov 2001 00:44:36 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 29 Nov 2001 00:44:36 -0000 Received: (qmail 10044 invoked by uid 97); 29 Nov 2001 00:44:38 -0000 Delivered-To: qmlist-jakarta-archive-taglibs-user@jakarta.apache.org Received: (qmail 10028 invoked by uid 97); 29 Nov 2001 00:44:37 -0000 Mailing-List: contact taglibs-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tag Libraries Users List" Reply-To: "Tag Libraries Users List" Delivered-To: mailing list taglibs-user@jakarta.apache.org Received: (qmail 10017 invoked from network); 29 Nov 2001 00:44:36 -0000 Message-ID: <111CCE21E90FD511A7BE0002B325AFDE2BCDFE@MAIL> From: Ramachandra Sankuratri To: "'taglibs-user@jakarta.apache.org'" Cc: Ramachandra Sankuratri Subject: i18n - chinese characters displayed incorrectly Date: Wed, 28 Nov 2001 19:44:31 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi In my JSP page, I want to display the Chinese labels which are stored in "labels_zh.properties" file. I copied the "gb2312" chinese characters into notepad and saved the file in "utf-8" format. First I set the locale to "CHINA" which sets the charset to "GB2312". The resulting JSP displays the chinese characters incorrectly. So I set the content type explicitly to utf-8 immediately after the locale, but this does not help. What I suspect is that the data is stored in "utf-8" format but the tag tries to read it in "gb2312" format which results in the incorrect display. Am I doing something wrong !!! Any solutions for the above problem. Below is the JSP code. <%@taglib uri="/WEB-INF/i18n.tld" prefix="i18n" %> <% response.setHeader("Content-Type", "text/html; charset=utf-8"); %> Testing i18n Thanks Chandu -- To unsubscribe, e-mail: For additional commands, e-mail: