【技术贴】java插入mysql中文乱码解决|java插入mysql数据库显示问号?

【技术贴】java插入mysql中文乱码解决|java插入mysql数据库显示问号?

在你要连接到mysql 的代码里写上?useUnicode=true&characterEncoding=UTF-8"



比如

"jdbc:mysql://localhost:3306/chenluancl1?useUnicode=true&characterEncoding=UTF-8", "root","密码"

原文地址:https://www.cnblogs.com/ae6623/p/4416733.html