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

How to solve garbled code when opening PHP in iis

爱喝马黛茶的安东尼
Release: 2023-02-27 16:34:01
Original
3856 people have browsed it

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!

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