Home > Backend Development > PHP Tutorial > Solution to garbled code found after testing with php after connecting to Apache

Solution to garbled code found after testing with php after connecting to Apache

不言
Release: 2023-03-24 22:58:02
Original
1718 people have browsed it

The content of this article is about the solution to the garbled code found in the test after PHP is docked with Apache. It has a certain reference value. Now I share it with you. Friends in need can refer to it

PHP docking After installing Apache, the test found that there were garbled

. Just modify the ini file of PHP and it will be fine. After opening, search for charset, change the default "UTF-8" to gb2312, and restart the Apache service.

; PHP's default character set is set to gb2312.
; http://php.net/default-charset
default_charset = "gb2312"
Copy after login

The above is the detailed content of Solution to garbled code found after testing with php after connecting to Apache. 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