A
Andy Fish
Hi,
I have a form with some text boxes, and I'm trying to post the data to a
servlet in utf-8 format (which I would have thought would be the default but
it appears not?)
the HTML file containing the form itself is definitely encoded in UTF-8, and
the form tag looks like this:
<form action="http://localhost:8080/foo/servlet" method="post" id="form1"
charset="UTF-8" name="form1">
<INPUT type="text" name="foo">
</form>
In the servlet I'm just calling request.getParameter("foo");
If I type in an English pound sign £ (this is the English currency symbol,
not #), I get £ (which is A circumflex followed by the pound sign).
I've been playing with various variations for 1/2 a day now and it's
starting to get me rather frustrated. Can anyone point me in the right
direction.
TIA
Andy
I have a form with some text boxes, and I'm trying to post the data to a
servlet in utf-8 format (which I would have thought would be the default but
it appears not?)
the HTML file containing the form itself is definitely encoded in UTF-8, and
the form tag looks like this:
<form action="http://localhost:8080/foo/servlet" method="post" id="form1"
charset="UTF-8" name="form1">
<INPUT type="text" name="foo">
</form>
In the servlet I'm just calling request.getParameter("foo");
If I type in an English pound sign £ (this is the English currency symbol,
not #), I get £ (which is A circumflex followed by the pound sign).
I've been playing with various variations for 1/2 a day now and it's
starting to get me rather frustrated. Can anyone point me in the right
direction.
TIA
Andy