Home >Database >Mysql Tutorial >java 汉字保存到mysql 乱码_MySQL

java 汉字保存到mysql 乱码_MySQL

WBOY
WBOYOriginal
2016-05-31 08:48:561014browse

java 汉字保存到mysql 乱码

保存之前正常,插入数据乱码

确认jsp mysql编码都确定为utf8

在连接数据库是加上编码 jdbc:mysql://localhost:3306/test?useUnicode=true&characterEncoding=utf8

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