开发者

error while inserting symbol in database with JPA

I am using JPA to insert into Mysql database and it is not able to persist symbols like double quotes(") or euro etc. instead of that it persist Que开发者_StackOverflow中文版 mark (?)


Looks like some "Unicode problem".

Double check that you are using UTF-8 as character encoding for your tables/database (or maybe even as default CHARACTER SET). See 9.1.3. Specifying Character Sets and Collations.


Thanks for ur reply It is not Unicode related problem i checked my character set form db to app server It is UTF-8

if i type the symbol it get inserted into db correctly but if i copied form somewhere else it insert mojibake.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜