PHP£¬ÊÇÓ¢Îij¬¼¶Îı¾Ô¤´¦ÀíÓïÑÔHypertext PreprocessorµÄËõд¡£PHP ÊÇÒ»ÖÖ HTML ÄÚǶʽµÄÓïÑÔ£¬ÊÇÒ»ÖÖÔÚ·þÎñÆ÷¶ËÖ´ÐеÄǶÈëHTMLÎĵµµÄ½Å±¾ÓïÑÔ
网页设置成了utf8,mysql整理为utf8_unicode_ci,php、html文件也另存为utf8格式了。还可能是什么问题导致乱码呢?
用firebug看输出,如下:
"keywords":"\u00c8\u00a6\u00cd\u00e2\u00b9\u00ca\u00ca\u00c2","update_time":"2011-06-09 12:00:11","content":"\u00ba\u00f3\u00ba\u00a3\u00b1\u00df\u00a3\u00ac\u00d7\u00c0\u00d3\u00ce\u00d6\u00d0\u00a3\u00ac\u00d3\u00d6\u00d1\u00a7\u00d0\u00c2\u00bb\u00a8\u00d1\u00f9\u00a3\u00bb\u00d6\u00bb\u00d1\u00d4\u00c6\u00ac\u00d3\u00ef\u00bf\u00b4\u00ce\u00d2\u00d4\u00f5\u00c3\u00b4\u00b2\u00c2\u00b0\u00a1\u00a1\u00a3\u00a1\u00a3\u00a1\u00a3\u00cb\u00bc\u00ce\u00ac\u00d4\u00f5\u00c3\u00b4\u00c0\u00cf\u00ca\u00c7\u00b2\u00bb\u00cc\u00ab\u00d2\u00bb\u00d1\u00f9\u00c4\u00d8\u00a1\u00a3\u00a1\u00a3\u00a1\u00a3\u00b9\u00fe\u00b9\u00fe\u00b9\u00fe"