Hibernate & UTF8

| No TrackBacks

If want to write Unicode to database through Hibernate, need add the code below to hibernate.cfg.xml or persistence.xml.

<property name = "hibernate.connection.useUnicode" value = "true" />
<property name = "hibernate.connection.characterEncoding" value = "UTF8" />

No TrackBacks

TrackBack URL: http://server.everfine.com.tw/blog/mt-tb.cgi/260

March 2010

Sun Mon Tue Wed Thu Fri Sat
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31      

Archives

Powered by Movable Type 4.33-en

About this Entry

This page contains a single entry by philipz published on July 12, 2009 2:23 AM.

Find recent content on the main index or look in the archives to find all content.