Memo field unicode problem

The alpha/beta tester's forum for ZeosLib 7.0.x series

Report problems concerning our Delphi 2009+ version and new Zeoslib 7.0 features here.

This is a forum that will be removed once the 7.X version goes into stable!!

Moderators: gto, EgonHugeist, olehs

Locked
jeremicm
Senior Boarder
Senior Boarder
Posts: 61
Joined: 18.10.2006, 17:07
Contact:

Memo field unicode problem

Post by jeremicm »

I'm using Delphi XE2 and latest zeos 7 from SVN. I have problem with unicode characters in memo field. Database is mySQL 4.1.

I use DBAdvGrid from TMSSoftware to show data. When i open my query in grid, unicode characters stored in memo field are shown as trash. When i show that characters in edit control using only

Code: Select all

Edit.Text := Field.AsString
they are also shown as trash, but when i convert value to ansistring with

Code: Select all

Edit.Text := Utf8ToAnsi(Field.AsString)
, data is shown as it should be...

Can someone check this and tell me what is going on? This happens only with memo fields.
User avatar
EgonHugeist
Zeos Project Manager
Zeos Project Manager
Posts: 1936
Joined: 31.03.2011, 22:38

Post by EgonHugeist »

jeremicm,

This is stil solved here: http://zeos.firmos.at/viewtopic.php?t=3427
Download this branch, chose TZConnection.CientCodePage := 'utf8'.

I think you're using the trunk or testing + MySQL, right?

If you'll read the thread then you can see some more features.

Michael

Btw UTF8ToSring or UTF8ToUnicodeString should be the better choice for your IDE.
Best regards, Michael

You want to help? http://zeoslib.sourceforge.net/viewtopic.php?f=4&t=3671
You found a (possible) bug? Use the new bugtracker dude! http://sourceforge.net/p/zeoslib/tickets/

Image
Locked