Configuring Tomcat 6 to support Russian cp1251 encoding

I am moving the struts application from Websphere to Tomcat 6, and my application supports Russian. In Websphere, we use param -Dclinet.encoding.override = cp1251 to pass the JVM, but when I tried this with tomcat, passing the JVM argument -DFile.encoding = cp1251, the system does not accept input (I’m looking for any text field, for example screen) and responds with invalid input.

I am also trying to pass the same parameter as for Websphere (-Dclinet.encoding.override = cp1251), but did not solve my problem.

+3
source share
1 answer

, , . http://snippets.dzone.com/posts/show/5948. . : response.setCharacterEncoding("UTF-8"); request.setCharacterEncoding("UTF-8"); . . , .

+4

Source: https://habr.com/ru/post/1698017/


All Articles