Incorrect string value: '\xF0\x9F\x8E\xB5" occurs when using utf8mb4 with connector J < 5.1.33 (Doc ID 2096053.1)

Last updated on MARCH 16, 2017

Applies to:

MySQL Connectors - Version 5.1 to 5.1 [Release 5.1]
Information in this document applies to any platform.

Symptoms

Changes

 Even though set the 'character_set_server' to 'utf8mb4', java would complain above error.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms