Home > Database > Mysql Tutorial > jdbc-mysql查询中文乱码问题

jdbc-mysql查询中文乱码问题

WBOY
Release: 2016-06-06 09:38:52
Original
997 people have browsed it

mysqljdbc乱码

1
2

Navicat和JDBC中都是正常的(Windows),通过cmd(代码页utf8)进mysql,查询结果是第一张图左边;直接进mysql(代码页简体中文GBK)效果第一张图右边。命令查看mysql编码第二张图。
关于mysql乱码问题网上也看了几篇教程,但是都没啥用啊。

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