Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to enable UTF-8 to Unicode translation?

Database: utf8 
Collation: utf8_general_ci

I have the following problem:

When I execute my query everything is written correctly to the table except the Chinese characters and Cyrillic characters shows me only in the table field "???????".

enter image description here

Is there an option to change the charset in the unidac componenet or at the mysql server?

like image 899
Hidden Avatar asked Nov 24 '25 05:11

Hidden


1 Answers

You have to set a driver specific option to enable Unicode translation:

Connection.SpecificOptions.Values['MySQL.UseUnicode'] := 'True';
like image 52
Jens Mühlenhoff Avatar answered Nov 25 '25 18:11

Jens Mühlenhoff



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!