Home >Backend Development >PHP Tutorial >微信内网页开发报Http Body乱码,这是什么原因啊?

微信内网页开发报Http Body乱码,这是什么原因啊?

WBOY
WBOYOriginal
2016-06-06 20:20:141161browse

微信内网页开发报Http Body乱码,这是什么原因啊?

回复内容:

微信内网页开发报Http Body乱码,这是什么原因啊?

你需要指定文件编码

通过 HTTP头 或者 HTML标签

<code class="php"><?php header('content-type:text/html;charset = utf-8'); 
</code></code>

<code class="html">

  
    <meta charset="utf-8">
    <title></title>
  
  
    
  
</code>
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn