[solved] Windows 32 / 64 problem with TWideStringField

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
cfc
Fresh Boarder
Fresh Boarder
Posts: 16
Joined: 15.06.2012, 15:02

[solved] Windows 32 / 64 problem with TWideStringField

Post by cfc »

Hi Michael,

All taxes well until you run the program in Windows 32. The machine on which work is Windows 7 64 and varchar fields are read as TWideStringField, but when the same program compiled on my machine I run it on XP 32 or Windows 2003 Server, varchar fields are read as TStringField.

Greetings.
User avatar
EgonHugeist
Zeos Project Manager
Zeos Project Manager
Posts: 1936
Joined: 31.03.2011, 22:38

Post by EgonHugeist »

cfc,

imbelievable for me. About which protocol do we talk now? Zeos-Egonhugeist does decide which FieldType is needed on the client-characterset. If this an encoded one then the TWideStringField is correct. If this one is an Ansi encoded one then the TStringField is choosen.

Question did you set the TZConnection.ClientCodePage? If not then Zeos has an different behavior if your engine default encoding differs...

But i can not believe that this issue has dependencies to the 32/64Bit environment.

Michael
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
cfc
Fresh Boarder
Fresh Boarder
Posts: 16
Joined: 15.06.2012, 15:02

Post by cfc »

Michael,

Excuse me, you're right, the problem was the Oracle client configuration on each machine, by setting in ZConnection clientcodepage UTF8 works perfect regardless of how this set NSL_LANG.

Thank you very much.

cfc.
User avatar
EgonHugeist
Zeos Project Manager
Zeos Project Manager
Posts: 1936
Joined: 31.03.2011, 22:38

Post by EgonHugeist »

cfc,

thank you for repley. Case closed...

Michael
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