Error writing text into a DB table

Certified Lead Developer

Hi,

I'm getting the below error when writing a text value in the database:

java.sql.SQLException: Incorrect string value: '\xF0\x9F\x98\x8A\x0A\x0A

 

I guess it is because of the column collation is "utf8_general_ci" and does not support unicode characters. I already tried changing the collation type to unicode but it still does not work.

Did anyone else face similar issue? Please suggest a solution.

 

TIA

 

Regards,

Sunil Zacharia

  Discussion posts and replies are publicly visible

Parents Reply Children
No Data