Can I send a POST form in an encoding other than of its body?
- by Daziplqa
Hi gang,
I've Html page that looks like:
<HTML>
<meta http-equiv='Content-Type' content='text/html; charset=gb2312'>
<BODY onload='document.forms[0].submit();'>
<form name="form" method="post" action="/path/to/some/servlet">
<input type="hidden" name="username" value="??"> <!-- UTF-8 characters -->
</form>
</BODY>
</HTML>
As you can see, the content of this page is UTF-8, but I need to send it with GB2312 character encoding, as the servlet that I am sending this page to expects from me GB2312.
Is this a valid scenario?
Because in the servlet, I couldn't retive these chines characters back using a filter that sets the character encoding to GB2312!!
Please help