Home  >  Article  >  Backend Development  >  phpstudy Chinese garbled code

phpstudy Chinese garbled code

王林
王林Original
2019-10-15 17:54:266361browse

phpstudy Chinese garbled code

Problem:

After using phpstudy to write the .php file, the form request result is garbled.

Solution:

Just add some code to the header of the .php file.

<?php
header(&#39;Content-Type: text/html; charset=utf-8&#39;);
?>

Recommended tutorial: PHP video tutorial

The above is the detailed content of phpstudy Chinese garbled code. For more information, please follow other related articles on the PHP Chinese website!

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