PHP(8)GBK杞琔TF-8

header("Content-type:text/html;charset=GB2312");
echo str); //灏嗗瓧绗︿覆鐨勭紪鐮佷粠GB2312杞埌UTF-8

鎵归噺杞爜array

function array_iconv(in_charset="gbk", ret = eval('return '.iconv(out_charset,var_export(ret;
// 杩欓噷杞爜涔嬪悗鍙互杈撳嚭json
// return json_encode($ret);
}

你可能感兴趣的:(PHP(8)GBK杞琔TF-8)