在 XSL 中引入外部 CSS/JS/VBS 时, 如果 被引入的文件内含有中文, 则会变为乱码的解决方法!

 1<xsl:stylesheet version="1.0" xmlns:xsl="  http://www.w3.org/1999/XSL/Transform  ">
 2<xsl:output indent="yes" method="html"></xsl:output>
 3<xsl:template match="/">
 4<html>
 5<head>
 6<meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
 7<title></title>
 8<script charset="“GB2312“" language="“javascript“" src="“xxx.js“"></script>
 9</head>   
10...............   
11</html></xsl:template>
12</xsl:stylesheet>
Published At
Categories with Web编程
Tagged with
comments powered by Disqus