PreparedStatement 的 setString 把中文转为了问号

如题,查看数据库连接串,例如我的:
jdbc:mysql://localhost:3306/mather?characterEncoding=UTF-8
在mather后添加?characterEncoding=UTF-8将编码设为utf-8

原文地址:https://www.cnblogs.com/so-easy/p/8001022.html