神秘果 on 六月 5th, 2009

使用prototype的Ajax.Updater接口,使用接口evalScripts属性直接执行ajax结果,调用页面编码是gb2312,发现回吐的ajax内容中文乱码。是由于ajax默认使用utf-8编码,与页面的编码冲突导致乱码。

Read the rest of this entry »