Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 89411 invoked from network); 15 Dec 2006 12:47:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 Dec 2006 12:47:09 -0000 Received: (qmail 50435 invoked by uid 500); 15 Dec 2006 12:40:54 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 47601 invoked by uid 500); 15 Dec 2006 12:40:29 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 44868 invoked by uid 99); 15 Dec 2006 12:40:10 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Dec 2006 04:40:10 -0800 X-ASF-Spam-Status: No, hits=3.9 required=10.0 tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_POST,HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [217.12.10.39] (HELO web25003.mail.ukl.yahoo.com) (217.12.10.39) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 15 Dec 2006 01:44:51 -0800 Received: (qmail 58848 invoked by uid 60001); 15 Dec 2006 09:44:28 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.co.uk; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type; b=SGIm9elwA5zFUa3nYWYXn7ilL86Cs/8fUdC5a2zZt/M/UJ0voS7+AgCHMWq4oqwnCdSaDQY7BD7Z93R+uAgYD9LFJv1ApTxhHdJaFWEVPuCa0XBIjboRDxbAHmS3Ry2j4NeSwl8JpXqdzU4ybF7G4LShLukV1duJhA+AuGfIbR0= ; Message-ID: <20061215094428.58846.qmail@web25003.mail.ukl.yahoo.com> Received: from [145.236.141.64] by web25003.mail.ukl.yahoo.com via HTTP; Fri, 15 Dec 2006 09:44:28 GMT Date: Fri, 15 Dec 2006 09:44:28 +0000 (GMT) From: =?iso-8859-1?Q?Mester_J=F3zsef?= Subject: Re: Character encoding To: Tomcat Users List MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-1276156128-1166175868=:54535" X-Virus-Checked: Checked by ClamAV on apache.org --0-1276156128-1166175868=:54535 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello Mark=0A=0A>This is unlikely to help you and may be read-only on your = JVM.=0A=0A>You don't say what doesn't work but generally the following is r= equired:=0A>set URIEncoding=3D"UTF-8" on the connector=0A>set the the corre= ct response encoding on every response (you can do=0A>this per page or use = a filter to do this for all pages)=0AOk. Let's see my problem. =0AI have a = form with text input box. I type =C3=81rv=C3=ADzt=C5=B1r=C5=91 t=C3=BCk=C3= =B6rf=C3=BAr=C3=B3g=C3=A9p and I get " =C3=83rv=C3=83=C2=ADzt=C3=85=C2=B1r= =C3=85 t=C3=83=C2=BCk=C3=83=C2=B6rf=C3=83=C2=BAr=C3=83=C2=B3g=C3=83=C2=A9p= =0A "=0A=0ABeautiful isn't it? =0AThe page is:=0A=0A<%@page contentType= =3D"text/html"%>=0A<%@page pageEncoding=3D"UTF-8"%>=0A=0A=0A=0A=0A =0A =0A Try encod= ing=0A =0A =0A <% try {=0A request.set= CharacterEncoding("UTF-8");=0A }=0A catch (Exception ex) {=0A = out.println("Bad something: " +ex.getMessage());=0A } %>=0A Hello=0A = <%=3Drequest.getParameter("nev")%>=0A
=0A
=0A =0A = =0A
=0A =0A =0A=0A=0A=0A=0A>If you use a= database make sure that you persist your data in the=0A>correct encoding.= =0AIf my text came from database everything is correct.=0A=0A>If you conver= t from bytes to characters or characters to bytes makde=0A>sure you use the= correct encoding.=0AI don't.=0A=0A=0A=0AJoe=0A=0A=0A=0A=0A=0A=09=09=0A____= _______________________________________________________ =0ATry the all-new = Yahoo! Mail. "The New Version is radically easier to use" =E2=80=93 The Wal= l Street Journal =0Ahttp://uk.docs.yahoo.com/nowyoucan.html --0-1276156128-1166175868=:54535--