本文翻译自:Set HTTP header to UTF-8 using PHP
I have several PHP pages echoing out various things into HTML pages with the following code. 我有几个PHP页面使用以下代码将各种内容回显到HTML页面中。
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
However, when I validate using the W3C validator it comes up with: 但是,当我使用W3C验证器验证时,它会出现: