网页调用JS API出现乱码 编码错误 charset=”gb2312″和charset=”utf-8″定义编码
- <script type=”text/javascript” src=”test.js” charset=”gb2312″></script>
- <script type=”text/javascript” src=”test.js” charset=”"utf-8"></script>
复制代码
在UTF8网页调用GBK编码的API接口
- <script type=”text/javascript” src=”test.js” charset=”gb2312″></script>
复制代码
调用UTF8编码的API接口
- <script type=”text/javascript” src=”test.js” charset="utf-8"></script>
复制代码
|