In my java project, I keep getting [SqlExceptionHelper] Incorrect string value: '\xF0\x9F\x90\xBE V...'
, although MySQL Workbench show that the table is in UTF-8, and adding in the workbench the value "Brandstätter" works.
I changed in the workbench the collation from utf8 to utf8mb4, and that did not work. Also, in the java project, I have in my application.properties file: jdbc.url = jdbc:mysql://localhost:3306/recommendations?useUnicode=true&characterEncoding=utf8
(changing utf8
to utf8mb4
coused Unsupported character encoding 'utf8mb4'
).
Also, this returns utf8
: SELECT default_character_set_name FROM information_schema.SCHEMATA S WHERE schema_name = "db-name"
;
What can I do?
Edit: The data being inserted: "Loy ߐ¾ Virtual Pet Game".
Edit2: Now that I look more closly, this application's name coases the problem. What should I do? Neglect the weird chars (with Character.isISOControl
, or is there a collation even more powerful then UTF-8?