Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Encoding headache  RSS feed

Hussein Baghdadi
clojure forum advocate
Posts: 3479
Clojure Mac Objective C
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We are using Spring and Hibernate in our RIA.
Our MySQL 5 database is configured to handle UTF-8
A snippet from applicationContext.xml
<property name="hibernateProperties">
<prop key="hibernate.connection.charSet">UTF-8</prop>
<prop key="hibernate.show_sql">${hibernate.show_sql}</prop>
<prop key="hibernate.dialect">${hibernate.dialect}</prop>
<prop key="hibernate.format_sql">${hibernate.format_sql}</prop>
<prop key="hibernate.generate_statistics">${hibernate.generate_statistics}</prop>
But when sending Arabic characters to the servlet and trying to save them to the database,they got saved as strange symbols.
On the servlet, I tried every thing: URLDecoder, URLEncoder, setCharacterEncoding
Any ideas?
Spring 2.5
Hibernate 3.2
Ubuntu 7.10
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!