Tomcat + JSP does not support Chinese display issues how to solve

xiaoxiao2021-03-06  41

Tomcat JSP does not support Chinese display reasons: 1 Tomcat internal settings, do not support Chinese Shows HTML and HTML file 2 JSP page no Chinese internal code

Workaround: 1 All HTML, HTM files are changed to the JSP suffix, and "add <% @ page contentty =" text / html "%> <% @ PageEncoding =" gb2312 "%> 2 If you still can't resolve Change the content in the c: /tomcat/conf/web.xml in the Tomcat directory htm text / html; charset = GB2312 HTML text / html; charset = GB2312

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

New Post(0)