Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 7590 invoked from network); 9 Jul 2007 09:03:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Jul 2007 09:03:47 -0000 Received: (qmail 59975 invoked by uid 500); 9 Jul 2007 09:03:48 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 59659 invoked by uid 500); 9 Jul 2007 09:03:47 -0000 Mailing-List: contact user-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: user@geronimo.apache.org List-Id: Delivered-To: mailing list user@geronimo.apache.org Received: (qmail 59648 invoked by uid 99); 9 Jul 2007 09:03:47 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Jul 2007 02:03:46 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=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.146.177.244] (HELO web27710.mail.ukl.yahoo.com) (217.146.177.244) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 09 Jul 2007 02:03:43 -0700 Received: (qmail 70309 invoked by uid 60001); 9 Jul 2007 09:03:21 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.co.uk; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=OA06PQwx+v48Zzl15H1TwU90aT2UglkN9a9jaX+RKh/+SmhNHuNpJy7nn49nG4cPMDXx/z4/i1SkQr/4mG4GwOOWxOacpbGjycERGI0QwqzOfjB1P8nBP9PRSXx+m8WVjhNSl0cRyyGoo8lipsJqmHISwDd65V0SAya+YcUJr/E= ; Message-ID: <20070709090321.70307.qmail@web27710.mail.ukl.yahoo.com> X-YMail-OSG: fY6CqkIVM1nZUd908dIiRM2sF_b61kcLCBroxV86qLv5.PMGeBo..QF8iaYNodyuwzUeoiXoZhpOwI3UAuVsLtEQhLvPsF.kGcuU7p273G3BnQ_P.uCAV5mmPFU- Received: from [85.237.177.136] by web27710.mail.ukl.yahoo.com via HTTP; Mon, 09 Jul 2007 09:03:21 GMT X-Mailer: YahooMailRC/651.38 YahooMailWebService/0.7.41.16 Date: Mon, 9 Jul 2007 09:03:21 +0000 (GMT) From: Xh Subject: UTF-8 request strings corrupted To: User Geronimo MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-2122364072-1183971801=:70242" X-Virus-Checked: Checked by ClamAV on apache.org --0-2122364072-1183971801=:70242 Content-Type: text/plain; charset=ascii Hi All! I have a problem with UTF-8 web pages encoding and Polish language. Pages are generated from XML files with XSLT. All Polish characters are properly displayed. Everything is OK. Response is sent as: Server: Apache-Coyote/1.1 Set-Cookie: JSESSIONID=DCDE41C9E12D69A15B261649CF15DF8E; Path=/DataWeaver Content-Type: text/html;charset=UTF-8 ... also, the generated XHTML resposne's
element consists: but... when I fill Polish characters in web form and submit it, all Polish characters are corrupted... for example, inserted records in database are displayed as strange strings furthermore, when I extract parameters in this way: Map temp = (Map)request.getParameterMap(); for (String s: temp.keySet()) { // output to the console // this will print every single Polish character as double '?' System.out.println(s + ": " + temp.get(s)[0]); } any idea how to extract UTF-8 encoded strings from request? thanks in advance best regards Lukasz ___________________________________________________________ To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com --0-2122364072-1183971801=:70242 Content-Type: text/html; charset=ascii
Hi All!

I have a problem with UTF-8 web pages encoding and Polish language.

Pages are generated from XML files with XSLT. All Polish characters are properly displayed.
Everything is OK.

Response is sent as:

Server: Apache-Coyote/1.1
Set-Cookie: JSESSIONID=DCDE41C9E12D69A15B261649CF15DF8E; Path=/DataWeaver
Content-Type: text/html;charset=UTF-8
...

also, the generated XHTML resposne's <header> element consists:

<meta content="text/html; charset=UTF-8" http-equiv="Content-Type"/>
<meta content="pl" http-equiv="Content-Language"/>

but...

when I fill Polish characters in web form and submit it, all Polish characters are corrupted...

for example, inserted records in database are displayed as strange strings

furthermore, when I extract parameters in this way:

Map<String,String[]> temp = (Map<String, String[]>)request.getParameterMap();
for (String s: temp.keySet()) {
      // output to the console
      // this will print every single Polish character as double '?'
      System.out.println(s + ": " + temp.get(s)[0]);
}

any idea how to extract UTF-8 encoded strings from request?

thanks in advance
best regards
Lukasz



Yahoo! Cars NEW - sell your car and browse thousands of new and used cars online search now
--0-2122364072-1183971801=:70242--