utf 8 - MySQL's UTF-8 character support -
i getting exception java.sql.sqlexception: incorrect string value: '\xc2\x99 adm...' column
when trying insert value in mysql table. found \xc2\x99 maps u+0099 (or \u0099) 2-byte character. documentation, character 3 bytes or less supported mysql's utf-8. read utfmb4, since character 2 bytes , still giving error, issue might else. please suggest.
looks using default collation latin1_swedish_ci
whereas should using utf8_general_ci
since meant store utf-8
data in column. check mysql documentation on character sets , collations in mysql
you can use alter
command change collation character set
alter table your_table convert character set utf8 collate utf8_general_ci;
Comments
Post a Comment