开发者

Hibernate Encoding

Im trying to insert data with japanese characters to an oracle database. The things is what is saved in the database are bunch of inverted question marks. HO开发者_JAVA技巧w do I resolve this


See http://www.errcode.net/blogs/?p=6 to determine the encoding of your database. I'm currently using Oracle with Hibernate in UTF-8 with no extra configurations.

Aslo, you might want to check whether the input values come correctly encoded. For example, if you have a web application, check the request parameter encoding (or set it, with request.setCharacterEncoding("utf-8"))

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜