Configuration of Hibernate with UTF-8 to work with DB2 configured with UTF-8

Solution Verified - Updated -

Issue

  • The used Database DB2 has been changed to run with UTF-8.
  • On DB side the character encoding has been configured like:
    Creating a Unicode table in DB2 DB
  • It has been noticed that after this change some characters are not encoded correctly.

Environment

  • Hibernate 3
  • Hibernate 4

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.