W3C home > Mailing lists > Public > www-international@w3.org > October to December 2001

Servlet question

From: souravm <souravm@infy.com>
Date: Fri, 19 Oct 2001 09:28:43 +0530
Message-ID: <755FA95DB839D211856B0008C7287D930DE6A87E@kecmsg02.ad.infosys.com>
Cc: <www-international@w3.org>
Hi All,

Servlet engine uses platform's default encoding while returning the
string as a result of getParameter method call. Servlet engine converts
the bytes based on the platforms's default encoding and creates an
unicode string. Is there any way one can specify which is the encoding
to be used instead of default platform's encoding ?

Same thing is done (i.e., uses platforms's default encoding) when
servlet engine converts a unicode string to non unicode bytes while
sending the output to the client, if the charset is sepcified using
meta-tag instead of setting through the content type. Can the encoding
to be used be specified someway in this case also ?

Regards,
Sourav
Received on Thursday, 18 October 2001 23:59:42 GMT

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