Nikky
02/17/2020, 12:02 PMspand
02/17/2020, 12:03 PMNikky
02/17/2020, 12:10 PMKrüger
instead of Krüger
Nikky
02/17/2020, 12:12 PMß
spand
02/17/2020, 12:14 PMspand
02/17/2020, 12:14 PMspand
02/17/2020, 12:15 PMNikky
02/17/2020, 12:25 PMlatin1_swedish_ci
the question is if exposed can automatically convert it
or why it does not do it ?
i tried to set it in the connection url to utf8 or latin1_swedish_ci
neither worked as it seemsspand
02/17/2020, 12:28 PMNikky
02/17/2020, 12:30 PMString(toByteArray(Charsets.ISO_8859_1), Charsets.UTF_8)
works for everything except ß
is latin1_swedish_ci
a different ISO ?spand
02/17/2020, 12:32 PMNikky
03/16/2020, 6:31 PMspand
03/17/2020, 3:02 PMHikariConfig
I think you can adapt it to your case.
// <https://jira.mariadb.org/browse/CONJ-417>
addDataSourceProperty("sessionVariables", listOf(
"character_set_client=utf8mb4",
"character_set_results=utf8mb4",
"character_set_connection=utf8mb4",
// <https://mariadb.com/kb/en/library/sql-mode/>
// <https://jira.mariadb.org/browse/CONJ-545>
"sql_mode=NO_BACKSLASH_ESCAPES"
).joinToString())