1. WebConfig:
1 |
<globalization requestEncoding= "gb2312"
responseEncoding= "gb2312"
fileEncoding= "gb2312" /> |
2.<META http-equiv="content-type" content="text/html; charset=gb2312">
3.<script type="text/javascript" src="~/assets/plugins/data-tables/jquery.dataTables.js" charset="gb2312"></script>
4.Js文件本身是asci编码格式的,需记事本打开,另存为unicode或uft8格式。
页面中引入带中文的JS文件乱码问题,布布扣,bubuko.com
原文地址:http://www.cnblogs.com/i-blog/p/3767391.html