使用HTTP内容类型标头指定字符编码


Specify a character encoding using HTTP Content-Type header

我使用W3C mobileOK检查器,它建议我使用HTTP Content-Type标头指定字符编码。如何使用

header();

感谢您抽出时间!

取决于您的编码:

header('Content-type: text/html; charset=UTF-8');