I know that this error means that the mysql column is not accepting a value, but this is strange because the value fits into the Java encoded string UTF-8 and the mysql column is utf8_general_ci. In addition, all utf8 characters worked properly except for them.
Use case: I import tweets. This tweet: https://twitter.com/bakervin/status/210054214951518212 - you see two "strange" characters (and two strange spaces between them). The question is how to handle this:
- truncate these characters (how - what are they, how is Java UTF-8 different from MySQL one)
- make the column able to accept this value (like - is there anything more utf-y than utf8_general_ci)
Bozho source
share