Page 1 of 1

[patch_done] ZeosLib on Delphi XE charset

Posted: 18.09.2011, 18:12
by MikeSP2
Hello,

i installed ZEOSLib(SVN checkout rev. 933) in Delphi 2010 and XE on the same computer. In Delphi 2010 it works great with mysql. In Delphi XE i get wrong chars if i use some german spezial chars like ö,ü,ä,Ä,Ü,Ö.

The tables of my mysql database use the charset latin1.

I moved my big project from Delphi 2010 to Delphi XE with the same ZEOS componets. In Delphi 2010 it works very well but now i get big troubeles with spezial chars.

Is there some differenz between 2010 and xe? Both used unicode :shock: ?

I thested some settings in ZConnect like charset=utf8 but it wont work.
Are there some errors in ZeosLib for XE?

Regards
Mike

Posted: 18.09.2011, 20:24
by mdaems
This might be caused by wrong {$IFDEF} code in zeoslib as well. But it's strange nobody mentioned it before.

Mark

Posted: 19.09.2011, 09:05
by MikeSP2
Do you mean {$IFDEF} in ZEOS.inc or somwere else ?

regards
Mike

Posted: 19.09.2011, 22:18
by seawolf
I checked on the entire library and there's only an ifdef located in ZAbstractRODataset.pas which could cause this strange behaviour.

Posted: 21.09.2011, 09:12
by MikeSP2
Next round...

I installed RAD Studio XE new. I installed ZEOS 7 Rev 933 new.
No old things on this computer.

Same result :cry:

Is there somthing with a german Windows XP or german Rad Studio?
Now i put a zsql-monitor component on my form.
In this txt file all my spezial char are allright. If i take alook in my database
i see only terrible stuff.

All these characters Ö,Ü,Ä,ö,ä,ü insert with Navicat in the database are displayed right if i read it with zeoslib.

I think its only to write these caracters with zeoslib into the database.
Is there somethig else to test??

Regaeds
Mike

Posted: 25.09.2011, 21:31
by ism
try from
http://sourceforge.net/scm/?type=svn&group_id=35994

svn co https://zeoslib.svn.sourceforge.net/svnroot/zeoslib zeoslib

maybe select in Navicat properly client charset

Posted: 28.09.2011, 11:19
by Lilive
Hello,
you should read this post : http://zeos.firmos.at/viewtopic.php?t=3124
We encountered the same problem with Zeos 7 + Delphi XE + MySQL and French literature " é è ê ë ô ..."
The solution given is valid and solves these problems. 8)
Good day.

Posted: 30.09.2011, 14:43
by MikeSP2
Hey Lilive,

this fix my problems. Thank You!

I put codepage=utf8 in my connection and it works.

But why is this code not in the official release??

is there any reason agaist this patch.

Regards

Mike

Posted: 01.10.2011, 15:43
by Lilive
But why is this code not in the official release??
is there any reason agaist this patch.
Hi Mike
Only one member of the dev team Zeos can answer this question ! :wink:
Zeoslib 7 is still under development.
Maybe this patch causes problems with other DBMS ... :?
good weekend
Lilive

Posted: 08.04.2012, 12:09
by EgonHugeist