[patch_done] ZeosLib on Delphi XE charset

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
MikeSP2
Fresh Boarder
Fresh Boarder
Posts: 4
Joined: 17.09.2011, 12:31

[patch_done] ZeosLib on Delphi XE charset

Post 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
User avatar
mdaems
Zeos Project Manager
Zeos Project Manager
Posts: 2766
Joined: 20.09.2005, 15:28
Location: Brussels, Belgium
Contact:

Post by mdaems »

This might be caused by wrong {$IFDEF} code in zeoslib as well. But it's strange nobody mentioned it before.

Mark
Image
MikeSP2
Fresh Boarder
Fresh Boarder
Posts: 4
Joined: 17.09.2011, 12:31

Post by MikeSP2 »

Do you mean {$IFDEF} in ZEOS.inc or somwere else ?

regards
Mike
seawolf
Zeos Dev Team *
Zeos Dev Team *
Posts: 385
Joined: 04.06.2008, 19:50
Contact:

Post by seawolf »

I checked on the entire library and there's only an ifdef located in ZAbstractRODataset.pas which could cause this strange behaviour.
MikeSP2
Fresh Boarder
Fresh Boarder
Posts: 4
Joined: 17.09.2011, 12:31

Post 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
ism
Zeos Test Team
Zeos Test Team
Posts: 202
Joined: 02.10.2010, 20:48

Post 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
Lazarus 1.0.8 fpc 2.6.0
Lilive
Fresh Boarder
Fresh Boarder
Posts: 5
Joined: 21.06.2011, 18:13

Post 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.
MikeSP2
Fresh Boarder
Fresh Boarder
Posts: 4
Joined: 17.09.2011, 12:31

Post 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
Lilive
Fresh Boarder
Fresh Boarder
Posts: 5
Joined: 21.06.2011, 18:13

Post 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
User avatar
EgonHugeist
Zeos Project Manager
Zeos Project Manager
Posts: 1936
Joined: 31.03.2011, 22:38

Post by EgonHugeist »

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