I need to insert Chinese characters inside Oracle Data base using Java (hibernate 3.0 /jpa), I tried many methods and failed.
When I persist the entity I see (??? ) in the filed and when I retrieve the value I see the same result.
My Oracle NLS_DATABASE_PARAMETERS:
NLS_CHARACTERSET WE8MSWIN1252
NLS_NCHAR_CHARACTERSET AL16UTF16
The column type is Nvarchar. I set this properties in persistence.xml
<property name="hibernate.connection.useUnicode" value="true" />
<property name="hibernate.connection.characterEncoding" value="UTF-8"/>
<property name="hibernate.connection.charSet" value="UTF-8"/>