TMyDump and unicode

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
ben
Posts: 119
Joined: Wed 17 Nov 2004 19:48

TMyDump and unicode

Post by ben » Sun 10 Sep 2006 15:27

I've notice that TMyDump is unable to properly backup a table that contains unicode characters. The result SQL or file contains no unicode.

is that a bug?

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

Post by Antaeus » Mon 11 Sep 2006 12:19

You can work with TMyDump and Unicode with following settings:
Connection.Options.Charset = utf8;
Connection.Options.UseUnicode = False;

ben
Posts: 119
Joined: Wed 17 Nov 2004 19:48

Post by ben » Mon 11 Sep 2006 18:25

yes that is what I did but the SaveToFile option saves the file in a non unicode format. Have you tested?

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

Post by Antaeus » Tue 12 Sep 2006 13:49

Yes, we have tested this issue. String values are saved in utf8 format. To run this SQL script you should execute SET NAMES utf8 command previously.

Post Reply