I wrote a JSP that looks like this:
% page language=java contentType=text/html; charset=UTF-8 %
html
headtitleTest page/title/head
bodypbigTest page/big/p
pThis page tests various display functions./p
pThis is UTF-8 Japanese text: %= \u4eca\u65e5\u306f\u4e16\u754c %/p
form method=post
...
When I use this JSP, it shows up a text input. I use kinput2/Mozilla to
input some Japanese text, hit submit, and then it displays the
Japanese text back to me.
What I'm wondering is, why does this work? If simply use
out.println(request.getParameter(test)) then it displays garbage.
For
On Sat, 2003-02-22 at 17:45, THG wrote:
with request.getParameter(test) you get the iso-8859-1 encoded utf-8 data (which
is encoded with us_ascii) - an double encoded string.
Ok, I think I'm beginning to get it. I did this in a JSP (with
charset=UTF-8):
String parameter =