Home >Development Tools >phpstorm >What should I do if phpstorm Chinese displays garbled characters?

What should I do if phpstorm Chinese displays garbled characters?

爱喝马黛茶的安东尼
爱喝马黛茶的安东尼Original
2019-08-14 11:41:236937browse

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;);         //没错就是这句!!要放在输出之前

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!

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