Home > Backend Development > PHP Tutorial > sqlyog 中文乱码问题的设置方法_PHP

sqlyog 中文乱码问题的设置方法_PHP

WBOY
Release: 2016-06-01 12:24:12
Original
1047 people have browsed it

1.在SQLyog下输入下面代码,全部执行

SET character_set_client = utf8;
SET character_set_results = gb2312;
SET character_set_connection = utf8;

如果上边的不行,还可以改成Gbk。总以根据你的数据的文字编码改成相应的编码类型就ok了。给出Gbk的代码:

SET character_set_client = gbK;
SET character_set_results = gbK;
SET character_set_connection = utf8;

但是重启SQL之后又不行了。

2.Tools->Preference Base->Editor 修改Fonts
修改完成后,重新启动SQLyog就好了!

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