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
. 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"
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!