Home  >  Article  >  php教程  >  解决phpmyadmin中文乱码问题。。。

解决phpmyadmin中文乱码问题。。。

WBOY
WBOYOriginal
2016-06-13 12:34:001234browse

解决phpmyadmin中文乱码问题。。。

去phpMyAdmin的根目录下,打开以下这个文件:

libraries/select_lang.lib.php
  
1、找到有"zh-gb2312"的那一行,把'zh-gb2312' 改成 'zh-gb2312-utf-8'
  为什么这样加?那是因为服务器会把没有"-utf-8"的语言过滤掉,在libraries/database_interface.lib.php 第168行,根据英文说:“为了防止混淆”,或者如果不把'zh-gb2312' 改成 'zh-gb2312-utf-8',可以去掉过滤吧。把那个if去掉就OK了。

 2、找到"$mysql_charset_map = array("那一行
  把'gb2312' => 'gb2312',
  改成 'gb2312' => 'latin1',

  保存,OK,在进入phpMyAdmin管理,选择语言chinese simplified(zh-gb2312-utf-8)
        切记要选择语言为chinese simplified(zh-gb2312-utf-8)! 

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