Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 36134 invoked from network); 7 Aug 2002 04:19:43 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 7 Aug 2002 04:19:43 -0000 Received: (qmail 24164 invoked by uid 97); 7 Aug 2002 04:19:54 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@jakarta.apache.org Received: (qmail 24148 invoked by uid 97); 7 Aug 2002 04:19:54 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 24136 invoked by uid 98); 7 Aug 2002 04:19:53 -0000 X-Antivirus: nagoya (v4198 created Apr 24 2002) X-Originating-IP: [202.175.31.102] From: "Geo Lam" To: tomcat-user@jakarta.apache.org Bcc: Subject: UTF-8 encoding problem (responding to browser) Date: Wed, 07 Aug 2002 12:19:29 +0800 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 07 Aug 2002 04:19:29.0342 (UTC) FILETIME=[9F7F0DE0:01C23DC9] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Dear all, I have search the arhive list concerning the encoding problem of reading double byte character. I have used the tomcat filter to successfully reading chinese UTF-8 character and saving it into database(MS SQLServer2000 -MS JDBC driver). However, in the same servlet, I used the output writer to write the same string to the browser only with "???" characters. I have set response.setContentType("text/html;charset=UTF-8") but it doesn't work. What can I do to correct the output problem? Thanks. Attached: a segment of code; // using tomcat filter to perform request.setCharacterEncoding("UTF-8") System.out.println(request.getParameter("edTextBox")); // output is ?? in browser but database is correct (display using System.out.print is also correct) System.out.println("response-encoding: " + response.getCharacterEncoding() ); //output indicates that response is in UTF-8 Thanks _________________________________________________________________ Join the world�s largest e-mail service with MSN Hotmail. http://www.hotmail.com -- To unsubscribe, e-mail: For additional commands, e-mail: