D
D
DunkanMaklaut2020-07-10 16:04:28
Java
DunkanMaklaut, 2020-07-10 16:04:28

Why is “something” unreadable displayed instead of Russian text when accepting a text form with JSP?

On the JSP page, the user enters his data, which is subsequently rewritten in the database, but as soon as I start reading any Russian text, it does not matter the user himself writes or selects one result from the list - something is not legible, as if the encoding was violated. I work on Java 6 through Intellij idea and Tomcat 7. Tell me what it could be and how to fix it? Changing the encoding in IDEA did nothing,

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
NightKlirik, 2020-07-10
@NightKlirik

Try setting HttpServletRequest setCharacterEncoding("UTF-8"); before extracting data from it.

L
LazariusPaskalius, 2020-07-10
@LazariusPaskalius

Set the encoding on the jsp page itself

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question