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

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

WBOY
Release: 2016-06-06 20:20:14
Original
1166 people have browsed it

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

回复内容:

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

你需要指定文件编码

通过 HTTP头 或者 HTML标签

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

<code class="html">

  
    <meta charset="utf-8">
    <title></title>
  
  
    
  
</code>
Copy after login
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template