getCharacterEncoding problem

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 UTC