亂碼問題解決
my.ini中的default-character-set = gb2312
然后 String url = "jdbc:mysql://localhost:3306/LibraryManagementSystem?useUnicode=true&characterEncoding=GB2312";
在hibernate的亂碼問題
<property name="connection.url">
jdbc:mysql://localhost:3306/hibernate?useUnicode=true&characterEncoding=UTF-8
</property>
posted on 2011-09-14 16:30
kxbin 閱讀(271)
評(píng)論(0) 編輯 收藏 所屬分類:
MYSQL