How to avoid Twitter emoticon character while processing string in Java
问题 I'm working on processing Tweets from Twitter and storing them in a database (MySQL). I have my process running perfectly but sometimes I get an error like this one: 2012-08-31 08:11:23,303 WARN org.hibernate.engine.jdbc.spi.SqlExceptionHelper - SQL Error: 1366, SQLState: HY000 2012-08-31 08:11:23,304 ERROR org.hibernate.engine.jdbc.spi.SqlExceptionHelper - Incorrect string value: '\xF0\x9F\x98\x9D #...' for column 'twe_text' at row 1 When looking for the problematic tweet in my logs I find