What should I do if phpstorm Chinese displays garbled characters?

爱喝马黛茶的安东尼
Release: 2019-08-14 11:41:23
Original
6872 people have browsed it

What should I do if phpstorm Chinese displays garbled characters?

The default encoding of phpstorm is utf-8. If you need other encodings in the project, you can change it like this: File-->Setting-->Editor (left)-- >File Encodings, then you can change the encoding.

Related recommendations: "PhpStorm Usage Tutorial"

But even if the encoding is set to utf-8 in the php page, it will still be garbled. At this time, you need to add the following sentence The words are spoken:

<?php
header(&#39;Content-Type:textml;charset=utf-8&#39;);         //没错就是这句!!要放在输出之前
Copy after login

The above is the detailed content of What should I do if phpstorm Chinese displays garbled characters?. 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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!