W3C home > Mailing lists > Public > www-international@w3.org > July to September 2003

Re: what should the charset be in the response to the server

From: Chris Haynes <chris@harvington.org.uk>
Date: Thu, 7 Aug 2003 17:25:37 +0100
Message-ID: <003101c35d00$8970a570$0200000a@ringo>
Cc: <www-international@w3.org>

at August 07, 2003 4:43 PM  "Martin Duerst" commented:
> Using
>      request.setCharacterEncoding("UTF-8");
>      request.getParameter("param");
> didn't work last time I tried. Maybe I'll try again.
>

Martin,

Which Servlet container was this?

You have to make sure that the 'setCharacterEncoding()' is called
before any (direct or indirect) attempt to read the parameters.  Jetty
traps this sequence error. Maybe others do not?

Chris
Received on Thursday, 7 August 2003 12:35:04 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 2 June 2009 19:17:00 GMT