Home  >  Article  >  Backend Development  >  How to solve garbled code when opening PHP in iis

How to solve garbled code when opening PHP in iis

爱喝马黛茶的安东尼
爱喝马黛茶的安东尼Original
2019-10-21 14:10:153776browse

How to solve garbled code when opening PHP in iis

The garbled characters when opening PHP in IIS are caused by PHP not setting the encoding.

Related recommendations: "php Getting Started Tutorial"

Solution:

Open the php configuration file php.ini

Search "default_charset", find " ;default_charset = 'ISO-88509-1' "

and change it to default_charset = "UTF-8".

Note: (The semicolon in front must be removed)

The above is the detailed content of How to solve garbled code when opening PHP in iis. 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
Previous article:What can php doNext article:What can php do