title: MSSQL - JPA - Character encoding for Special characters - appending 'N' nativeQuery
body: <p>I'm using Spring 4.3.1 with JPA 2.0 and connected to MSSQL. I'm using JpaRepository's save method to insert and update data. One of the fields has nvarchar which can contain special characters like Latin, Chinese.  </p>
  
  <p>Also, I have set below JPA properties in applicationContext-hibernate.xml. </p>
  
  <pre><code>            &lt;prop key="hibernate.connection.CharSet"&gt;UTF-8&lt;/prop&gt;
              &lt;prop key="hibernate.connection.useUnicode"&gt;true&lt;/prop&gt;
              &lt;prop key="hibernate.connection.characterEncoding"&gt;UTF-8&lt;/prop&gt;
  </code></pre>
  
  <p>When I save the data, all the special characters are saved as question marks(??). 
  The solution suggested was to append 'N'in front of the update query to keep the special characters inserted. However, I don't see anywhere how to append 'N' in JpaRepository's save method. Any suggestions? </p>