0
如何使用ANSI字符集在php中發送數據? 作爲默認值是UTF-8在php中設置字符集
我用:
header('Content-Type: text/plain; charset=ansi');
沒有效果...
如何使用ANSI字符集在php中發送數據? 作爲默認值是UTF-8在php中設置字符集
我用:
header('Content-Type: text/plain; charset=ansi');
沒有效果...
如果ANSI你的意思是 「西方的Windows」,你應該使用charset=windows-1252
而不是us-ascii。
"text/plain; charset=us-ascii"
,請參見RFC http://www.w3.org/Protocols/rfc1341/7_1_Text.html
不幸的是它沒有幫助。 字符集根據我發送的數據進行設置。 'mb_convert_encoding'功能幫助:) – abuduba