Home > Database > Mysql Tutorial > body text

java储存mysql乱码报错

WBOY
Release: 2016-06-06 09:42:23
Original
1023 people have browsed it

mysqljava乱码

我现在是都文本来储存数据库, 做的是记录搜索内容的东西, 可是如果搜索内容本身中就有乱码, 要如何解决
图片说明
比如这个图片,那个像L的东西, String line = new String(br.readLine().getBytes(), "ISO8859_1" ) 转utf-8 也没用

报这样的错
java.sql.SQLException: Incorrect string value: '\xF0\x9F\x91\x8C\xE8\xBF...' for column 'keyWord' at row 52

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