Windows环境
配置文件默认字符集已经设置为utf8
show variables like '%char%';指令显示字符集均为utf8
向表中插入中文数据是报错乱码
set names gbk后插入数据正常,显示???
请问该如何解决?
url=jdbc:mysql://localhost:3306/xxx?useUnicode=true&characterEncoding=UTF8&serverTimezone=Asia/Shanghai&useSSL=false
试试
修改mySQL库和表中的存储方式为utf-8