Home > Database > Mysql Tutorial > body text

java 汉字保存到mysql 乱码_MySQL

WBOY
Release: 2016-05-31 08:48:56
Original
958 people have browsed it

java 汉字保存到mysql 乱码

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

确认jsp mysql编码都确定为utf8

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

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