呵呵,第一次到這裡發貼!~在PHP中,excel xls表導入mysql後,中文顯示為unicode編碼,如深圳市,怎麼辦呀?!
用:
header("Content-type:application/vnd.ms-excel");
header("Content-Disposition:filename=$ExcelFile");
導出excel xls表也是中文顯示為unicode編碼。不過,讀出數據到網頁上沒問題,顯示正常。
用:
header("Content-type:application/vnd.ms-excel");
header("Content-Disposition:filename=$ExcelFile");
導出excel xls表也是中文顯示為unicode編碼。不過,讀出數據到網頁上沒問題,顯示正常。
专业讨论网站: www.phptx.cn/bbs 又名:PHP天下社区