I did a test. You need to add accept-charset to the form tag:
<form ... accept-charset="UTF-8" ...>
... and tell the container which encoding to use before reading any parameters, because the browser will not send the encoding used in the header:
request.setCharacterEncoding("UTF-8");
Finally, make sure that the encoding of the output page is specified both in the response header and in the meta tag in head.
source
share