romani
romani

Reputation: 11

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 mark (?)

Upvotes: 1

Views: 750

Answers (2)

Pascal Thivent
Pascal Thivent

Reputation: 570545

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.

Upvotes: 2

romani
romani

Reputation: 1

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.

Upvotes: 0

Related Questions