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

不言
不言 Original
2018-04-27 15:49:29 1642browse

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 theinifile of PHP and it will be fine. After opening, search forcharset, 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"

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!

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