Chinese problem with struts

zhaozj2021-02-16  50

Show Chinese Error

. Native2ascii ApplicationResources.properties method 1. Copy the file: ApplicationResources_zh.properties2 ApplicationResources_zh.properties to modify the application to Chinese 3. Use of the JSP <% @ page contentType = "text / html; charset = ISO_8859_1"%>

Struts' Chinese problem is actually Tomcat's Chinese issue. The solution is relatively simple. It is a solution to the Tomcat's Examples. For example, in Tomcat

5.0.18

In the WebApp directory, there is set character encoding filterfilter Encoding EUC_JP change to set character encoding < Filter-class> filters.setcharacterencodingfilter Encoding gbk and then find that filters.setcharacterencodingfilter, copy to your src directory, compile it to the Classes directory is OK.

RE: Chinese problem in struts

转载请注明原文地址:https://www.9cbs.com/read-20988.html

New Post(0)