摘要:
First, inhibernate.cfg.xml :jdbc:mysql://localhost:3306/test?useUnicode=true&characterEncoding=UTF-8 Second, if you got something like "Incorrect string value: '\xE6\x9B\xB9\xE5\x86\xAC...' for column...",then in Terminal:mysql> alter database YOUR_DB_NAME character set utf8 阅读全文