EXT 中文乱码解决方法
2009-05-24 20:33
260 查看
查了一下网上的解决方法,写的有点简单。
1、如果是HTML页面上如果有中文,编码如果设置UTF-8会产生乱码。在HTML中不要出现中文。HEAD里面设置
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<script type="text/javascript" src="../build/locale/ext-lang-zh_CN.js"></script>
2、javascript里面肯定有中文了,设置成
<script type="text/javascript" src="PersonGridPanel.js" charset="gb2312"></script>
3.如果通过SERVLET返回的中文数据出现乱码,解决方法
response.setContentType("text/xml; charset=UTF-8");
PrintWriter out = response.getWriter();
1、如果是HTML页面上如果有中文,编码如果设置UTF-8会产生乱码。在HTML中不要出现中文。HEAD里面设置
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<script type="text/javascript" src="../build/locale/ext-lang-zh_CN.js"></script>
2、javascript里面肯定有中文了,设置成
<script type="text/javascript" src="PersonGridPanel.js" charset="gb2312"></script>
3.如果通过SERVLET返回的中文数据出现乱码,解决方法
response.setContentType("text/xml; charset=UTF-8");
PrintWriter out = response.getWriter();
相关文章推荐
- Ext中中文乱码问题解决方法
- GWT-Ext -&gt; FormPanel中的中文乱码解决方法
- 对Java程序中的中文乱码问题的解决方法
- Qt5中文乱码解决方法
- MySQL字符集中文乱码终极解决方案和mysql查询中文问题解决方法[转贴]
- ECSHOP后台编辑器上传中文名称图片乱码解决方法
- SSH Secure Shell Client中文乱码的解决方法
- C#中StreamReader读取中文文本出现乱码的解决方法
- PHP中文字符串截断无乱码解决方法
- ECLIPSE中文乱码解决方法
- Jfreechart中文乱码解决方法
- php json_encode 中文乱码的解决方法
- vim 中文乱码问题解决方法
- PHP json_encode中文乱码解决方法
- JAVA HTTPClient PostMethod 中文乱码问题解决方法
- jquery的ajax()函数传值中文乱码解决方法介绍
- Android向远程发服务请求中文乱码解决方法--全部代码经验证-方法一
- C# .net中cookie值为中文时的乱码解决方法
- linux下vim中文乱码的解决方法
- 读mysql中文乱码问题解决方法