db2 jdbc连接时如何指定字符编码

我的应用通过jdbc连接db2,db2数据库编码是GBK,通过连接获取的数据是乱码,jdbc方式下怎么指定字符集?

https://blog.csdn.net/weixin_41808843/article/details/100116373

jdbc:sqlserver://localhost:3306/Laptop?useUnicode=true&characterEncoding=GBK

characterEncoding=GBK:即为指定的字符编码

望采纳