When the ZEOS 7 new version for Delphi 2010 ?

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

Zoran
Senior Boarder
Senior Boarder
Posts: 55
Joined: 07.05.2010, 22:32

Post by Zoran »

ab wrote: The UTF-8 encoding will be used only at lower level, i.e. at ZDBC level.
All the conversions will take place when calling the ZDBC interfaces, automatically by the ZEOS units.
Please don't forget that Lazarus' LCL uses UTF8 internally, not UCS2 like Delphi's VCL.
Zeos is very important for Lazarus users, so please take care not to break this functionality. Please keep in mind that LCL controls use UTF8 and that no automatic conversion when communicating with ZDBC layer should take place in LCL.
cnliou
Zeos Dev Team
Zeos Dev Team
Posts: 31
Joined: 11.11.2005, 12:18

I still have trouble getting answers for my corner case

Post by cnliou »

ab wrote:At the VCL component level (e.g. TDataSet or TQuery Zeos versions), the type for strings will be the plain Delphi string type.
For instance, SQL.Text will expect string type, i.e. UCS2 since Delphi 2009.

The UTF-8 encoding will be used only at lower level, i.e. at ZDBC level.
All the conversions will take place when calling the ZDBC interfaces, automatically by the ZEOS units.

For high-level users only playing with VCL components, you won't see any difference. You'll use Delphi string values, just as usual.
I would appreciate if this (more simple?) question is answered:

With new UNICODE features implemented in zeoslib, can end users see UCS2 string values correctly rendered by VCL DB components like TDBEdit and TDBGrid, and save the new/modified UCS2 string values to databases that accepts UTF8?

Regards,
CN
ab
Fresh Boarder
Fresh Boarder
Posts: 16
Joined: 26.10.2010, 09:16
Location: France
Contact:

Post by ab »

cnliou wrote:With new UNICODE features implemented in zeoslib, can end users see UCS2 string values correctly rendered by VCL DB components like TDBEdit and TDBGrid, and save the new/modified UCS2 string values to databases that accepts UTF8?
Answer is Yes (at least it's the main intent of my Zeos fork).

And about LCL, it's very easy to let RawUTF8 be an UTF-8 string. With function inlining, it will be a direct assignment/variable bypass, with no conversion.
User avatar
mdaems
Zeos Project Manager
Zeos Project Manager
Posts: 2766
Joined: 20.09.2005, 15:28
Location: Brussels, Belgium
Contact:

Post by mdaems »

ab,
gto,

How's the status of this operation? Next week I might have more time to spend for helping out a little. Mainly because of the loads of snow we got here and because of christmas holiday.

Mark
Image
ab
Fresh Boarder
Fresh Boarder
Posts: 16
Joined: 26.10.2010, 09:16
Location: France
Contact:

Post by ab »

I didn't have much time for Zeos those past days...

You can find the source code of what I've done so far in our source code repository.
See http://synopse.info/fossil/dir?name=zeos
and about how to use the fossil repository: http://synopse.info/fossil/wiki?name=Get+the+source
andreittner
Fresh Boarder
Fresh Boarder
Posts: 1
Joined: 08.02.2011, 19:41

Post by andreittner »

Good afternoon everyone, how is this problem? is already ok :?:
Locked