Postgres UTF-8 clobs with JDBC

前端 未结 2 1633
日久生厌
日久生厌 2021-01-05 06:00

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).

2条回答
  •  旧巷少年郎
    2021-01-05 06:47

    Adding @Type(type="org.hibernate.type.StringClobType") to the clob description in hibernate solves it for me.

提交回复
热议问题