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