Solve the problem of Chinese garbled characters in phpmyadmin. . . _PHP Tutorial

WBOY
Release: 2016-07-21 15:57:35
Original
913 people have browsed it

Solve the problem of Chinese garbled characters in phpmyadmin. . .

Go to the root directory of phpMyAdmin and open the following file:

libraries/select_lang.lib.php
 
1. Find the line with "zh-gb2312", Change 'zh-gb2312' to 'zh-gb2312-utf-8'
Why add it like this? That's because the server will filter out languages ​​without "-utf-8". In libraries/database_interface.lib.php line 168, according to English: "To prevent confusion", or if you don't change 'zh-gb2312' It becomes 'zh-gb2312-utf-8', you can remove the filtering. Just remove that if and it will be OK.

2. Find the line "$mysql_charset_map = array("
and change 'gb2312' => 'gb2312',
to 'gb2312' => 'latin1',

Save, OK, enter phpMyAdmin management, select the language chinese simplified (zh-gb2312-utf-8)
Remember to select the language chinese simplified (zh-gb2312-utf-8)!

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/317777.htmlTechArticleSolve the Chinese garbled problem of phpmyadmin. . . Go to the root directory of phpMyAdmin and open the following file: libraries/select_lang.lib.php 1. Find the line with "zh-gb2312" and replace 'zh-gb...
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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!