Garbled behavior occurs when importing HTML through JST <c:import> in a JSP, because Org.apache.taglibs.standard.tag.common.core.ImportSupport
Charencoding value is null, charencoding is the default value, which is iso-8859-1
Fortunately, charencoding can be set directly through <c:import>, so just set it up, and many people say it can be done through meta settings in HTML, but I've tried it contenttype Also by looking at the source of the JSTL can be set up this, because it is usually used Cimport import jsp,jsp set is feasible, but the static page is not. Here's the main code for Importsupport:
Copy Code code as follows:
Reader r = null;
String CharSet;
String CharSet;
if ((this.charencoding!= null) && (!this.charencoding.equals (""))) {
CharSet = this.charencoding;
}
else {
String ContentType = Uc.getcontenttype ();
if (ContentType!= null) {
String CharSet = Util.getcontenttypeattribute (ContentType, "CharSet");
if (CharSet = = null) CharSet = "Iso-8859-1";
}
else {
CharSet = "Iso-8859-1";
}
}