刚发现google搜索框出了问题,输中文都变成乱码了
原来是head
<meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″ />
字符集是utf8
但google搜索框代码中
<input type=”hidden” name=”ie” value=”GB2312″></input>
<input type=”hidden” name=”oe” value=”GB2312″></input>
字符集是GB2312
改了一下google搜索框代码为
<input type=”hidden” name=”ie” value=”utf-8″></input>
<input type=”hidden” name=”oe” value=”utf-8″></input>
就OK了
但奇怪的是,前几天为什么都正常呢,真不解
看来得好好研究下字符编码问题了
中文真麻烦
