解决Hibernate中用HQL查询数据库出现中文乱码查询不出结果(Size=0)的问题
在配置文件hibernate.cfg.xml中
<property name="hibernate.connection.CharSet">
utf8
</property>
<property name="hibernate.connection.characterEncoding">
utf8
</property>
<property name="hibernate.connection.useUnicode">
true
</property>