Page 2 sur 2

Re: Ne peux pas voir le mots russe

Publié : ven. avr. 29, 2022 3:00 pm
par k007
Hello,

It seems I faced with the same issue for MySQL database. I tried to create database with utf8_bin, utf8_general_ci, cp1251_general_ci, but when I save fields with Cyrillic chars, all of them are replacing by question marks ("?????"). In case H2 database, everthing is OK.

Could you please advice how to fix this issue?

Version 3.0.2.RELEASE
MariaDB 10.5.8 InnoDB

Thank you!

BR,
Andrey

Re: Ne peux pas voir le mots russe

Publié : ven. avr. 29, 2022 9:11 pm
par k007
Let me answer to my own question. I've solved this using "?characterEncoding=utf8" in the connection string.

Code : Tout sélectionner

jdbc:mysql://localhost:<port>/<db>?characterEncoding=utf8