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