Home > Article > Backend Development > 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!