Home >Database >Mysql Tutorial >cmd显示mysql中文乱码解决_MySQL

cmd显示mysql中文乱码解决_MySQL

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-01 13:29:561123browse

bitsCN.com

cmd显示mysql中文乱码解决

 

首先cmd默认编码是GBK,而mysql默认使用的是utf-8 所以你可以设置cmd为

 

1chcp 65001  就是换成UTF-8代码页 2chcp 936 可以换回默认的GBK 3chcp 437 是美国英语

 

 

同时也可以设置mysql

 

1set names gbk

 

 

bitsCN.com
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