W3C home > Mailing lists > Public > www-jigsaw@w3.org > July to August 1998

getCharacterEncoding problem

From: Skorupa, Grzegorz <gs@inwar.com.pl>
Date: Thu, 20 Aug 1998 08:02:17 -0400 (EDT)
Message-ID: <50CE824B8915D2118F1100A0247C4282048815@backup.inwar.com.pl>
To: "'www-jigsaw@w3.org'" <www-jigsaw@w3.org>
Hello!

I've created a servlet with doPost method:

  public void doPost(HttpServletRequest req, HttpServletResponse res)
	  throws ServletException, IOException
  {

    System.out.println(req.getCharacterEncoding());
    ...
  }

I invoke this servlet from html page (including a form with POST action)
with

<meta http-equiv="Content-Type"
content="text/html; charset=iso-8859-2">

in it's header.

And getCharacterEncoding() always returns "ISO-8859-1".

I don't know what's going. Please help!

Thanks in advance.

Grzegorz Skorupa
gs@inwar.com.pl
Received on Thursday, 20 August 1998 08:03:33 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 9 April 2012 12:13:28 GMT