Today I was trying to help one of my coworkers who had a problem accessing a value on a JSP page and storing it into a database. Of course he was using UFT-8 characters, so they ended up in database all wrong.
A solution is very simple :))))
Just add
request.setCharacterEncoding("UTF-8");
before you access any parameter in the request object.
I got the solution from a
blog.
Ni komentarjev:
Objavite komentar