hang UTF-8 HTML forms
In an HTML form, you can accept the character set to be used with the parameter
-set encoding = "UTF-8"
to UTF-8. Unfortunately, this character set when sending of the form not submitted, so the server has to guess which character set is used. And he always advises "ISO-8859-1", so that confounded in a form using UTF-8, the umlauts. Remedy the following call:
request.setCharacterEncoding ("UTF-8");
it must come before the first request.getParameter () so that it works. So that the parameters are as interpreted UTF-8 and the form works.
0 comments:
Post a Comment