Hi...
I have character encoding problems on both select and insert by hibernate.
hibernate gets "
ğüşiöç" as "
ðüþiöç".. I set columns to utf8 and queries from a sql ide (sqlyog) have no problem.
any help will be highly appreciated.
Hibernate version: 3.1
Name and version of the database you are using: MySql 5
Hibernate.cfg.xml:
Code:
<property name="myeclipse.connection.profile">MySql</property>
<property name="connection.url">jdbc:mysql://localhost</property>
<property name="hibernate.connection.useUnicode">true</property>
<property name="hibernate.connection.characterEncoding">utf8</property>
<property name="connection.username">root</property>
<property name="connection.password"></property>
<property name="connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="dialect">org.hibernate.dialect.MySQLDialect</property>