zouliping / PDC

provide API for app developers and pdc maintainers
1 stars 1 forks source link

将本体持久化到数据库时,在设置了utf8编码,还是出现中文乱码 #3

Closed zouliping closed 11 years ago

zouliping commented 11 years ago

http://hi.baidu.com/ecgql/item/a1ac23eac20e06d1ea34c9b6 可能的解决办法,但文中提到的“在DB_URL后需要加上”useUnicode=yes&characterEncoding=utf8″ ”,在url后面添加的方式未知

zouliping commented 11 years ago

将url设置为"jdbc:mysql://localhost/testjena?useUnicode=true&characterEncoding=utf8",解决中文乱码问题!