What happens when I set UseUnicode = True

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Locked
GuzunNicolae
Posts: 78
Joined: Wed 17 Jan 2007 14:16

What happens when I set UseUnicode = True

Post by GuzunNicolae » Wed 17 Jan 2007 14:43

Hello

First of all I want to thank you for such great data access components. They are very nice.

But I run into a problem cause I don't know what happens inside MyDAC when I set UseUnicode=True in MyConnection.
As I imagine it should do automatic UTF8Decode - when reading from DB and UTF8Encode when writing to DB, but my tests do not prove me this.

I have a MySQL table which is UTF8. I sourced some UTF8 data in that table. Now when I show them in a TntDBGrid the data is not shown correctly.
This is a part of the string I get:
ΑÏ

Antaeus
Posts: 2098
Joined: Tue 14 Feb 2006 10:14

Post by Antaeus » Thu 18 Jan 2007 10:38

Please do not duplicate topics. We have answered you in other thread.

Locked