开发者

error while inserting symbol in database with JPA

开发者 https://www.devze.com 2023-01-18 08:54 出处:网络
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

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

精彩评论

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