Home > Article > Web Front-end > jsp pages including html pages appear garbled_html/css_WEB-ITnose
In the jsp page, after including an html file containing Chinese characters, garbled characters will appear when displayed in the browser. In this case, the following code needs to be configured in web.xml:
<jsp-config> <jsp-property-group> <description>Special property group for html Configuration JSP example.</description> <display-name>JSPConfiguration</display-name> <url-pattern>*.html</url-pattern> <el-ignored>true</el-ignored> <page-encoding>UTF-8</page-encoding> <!-- 此处为项目使用的编码方式 --> <scripting-invalid>false</scripting-invalid> <include-prelude></include-prelude> <include-coda></include-coda> </jsp-property-group></jsp-config>