Guest User

Untitled

a guest
Aug 1st, 2012
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. hibernate corrupts character encoding when migrated to oracle with utf-16
  2. SELECT * FROM NLS_DATABASE_PARAMETERS;
  3. NLS_NCHAR_CHARACTERSET UTF8
  4. NLS_CHARACTERSET WE8ISO8859P1
  5.  
  6. SELECT * FROM NLS_DATABASE_PARAMETERS;
  7. NLS_NCHAR_CHARACTERSET AL16UTF16
  8. NLS_CHARACTERSET WE8MSWIN1252
  9.  
  10. <bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
  11. <property name="dataSource" ref="dataSource"/>
  12. <property name="hibernateProperties">
  13. <value>
  14.  
  15. hibernate.connection.characterEncoding=UTF16
  16. hibernate.connection.charSet=UTF16
  17. hibernate.connection.useEncoding=true
  18. hibernate.connection.defaultNChar=true
Advertisement
Add Comment
Please, Sign In to add comment