摘要: 首先,弄清楚为什么url传递中文会转码或者乱码,以及http头contentType="text/html; charset=GBK"的作用。html代码会经过web服务器,浏览器处理,所以造成转码或者乱码的原因,可能涉及到:页面本身的设置、web服务器的设置、浏览器的设置。在动态页面,比如jsp、php中,可以设置contentType="text/html; charset=GBK"在服务器,比如apache中可以在web.xml中设置<Connector port="8080" protocol="HTTP/1. 阅读全文
posted @ 2012-05-27 15:39 Zollty 阅读(366) 评论(0) 推荐(0) 编辑