Home > Database > Mysql Tutorial > body text

mysqlinsert和前台显示乱码_MySQL

WBOY
Release: 2016-06-01 12:59:43
Original
966 people have browsed it

最近在搞服务端,遇到问题如下,

在mysql中插入中文乱码,或mysql中中文正常显示,但jsp在前台显示mysql中的中文时乱码,

解决方法,进入mysql控制台,执行

SET character_set_client='utf8';
SET character_set_connection='utf8';
SET character_set_results='utf8';

ok!


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