Servlet question

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 UTC