Home > Database > Mysql Tutorial > body text

MySql 控制台的中文显示_MySQL

WBOY
Release: 2016-06-01 13:44:31
Original
1257 people have browsed it

bitsCN.com

 

现象:

    MySql服务器的字符集设定为utf8,然后在控制台插入中文字符,结果jsp画面显示乱码,在控制台进行检索,也是乱码。

 

解决方法:

    在插入前先设定一下字符集:

    set names gbk;

    然后再进行插入:

    insert into xxx values (....);  

bitsCN.com
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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!