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

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

WBOY
Release: 2016-06-13 12:34:00
Original
1257 people have browsed it

解决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)! 

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 Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template