phpstudy Chinese garbled code

王林
Release: 2023-02-26 19:02:02
Original
6359 people have browsed it

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;);
?>
Copy after login

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!

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