Postgres JDBC driver seems to not handle UTF-8 clobs correctly. When you retrieve the clob the characters are not correct (you get ? marks for non ascii characters).
Supposedly this is a known issue:
Luckily for my application I generally avoid clobs so the fields that were clobs I have just made into really big varchars.
How are other people dealing with this limitation?
Adding @Type(type="org.hibernate.type.StringClobType") to the clob description in hibernate solves it for me.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With