Home > Database > Mysql Tutorial > phpMyAdmin显示中文的可行方法

phpMyAdmin显示中文的可行方法

WBOY
Release: 2016-06-07 16:56:33
Original
1388 people have browsed it

phpMyAdmin的根目录下,打开以下这个文件:libraries/select_lang.lib.php1、找到有quot;zh-gb2312quot;的那一行,把

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

libraries/select_lang.lib.php

1、找到有"zh-gb2312"的那一行,把'zh-gb2312'=》。。。。 改成 'zh-gb2312-utf-8'(就是修改前面的那个把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)!

linux

Related labels:
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