Page 1 of 1

Compiler Directives of the Strange Nobody SVN943 D12UP

Posted: 03.10.2011, 22:25
by EgonHugeist
I'm working on a Component-Project based on Zeos. I had the same Problems with Unicode ( Latin-Chinese Letters ) like others in the Forum.

[s]Also i felt sick by using TField.AsString: AnsiString and TField.AsUnicodeString: WideString in Delphi12UP. There it's deprecated i think or am i wrong?[/s] Left for Later-Versions to Store UTF-Letters from Outer-Space.

All other Components manage this to TField.AsStirng: String. So i chosse [s]to terminate this TField.Accessors and combinate them to one[/s]. to change TField.AsString: AnsiString to TField.AsString: String; I didn't delete any code, just Added many, many, many Compiler-Direcktives and started to implement the D12UP-Types into last SVN943 from SourceForge.Net.

Weekly i was looking in this Forum and, i was hopeful the Strange Nobody adds the Directives, but... :zzz:

Concerning http://zeos.firmos.at/viewtopic.php?t=3124 with latin1 Letters.
or http://zeos.firmos.at/viewtopic.php?t=3297
or http://zeos.firmos.at/viewtopic.php?t=3124
or http://zeos.firmos.at/viewtopic.php?t=3184
or http://zeos.firmos.at/viewtopic.php?p=12834
etc... :shock:

I created a MySQL Databese with the default codepage = UTF8.

In my Project i do not use any Charset or Collation sets in ZConnection.Properties. :!:

Now i added some Rows with Chinese "我是", Russian "кщиуке" and Latin letters like the %noël% or Cotação and started some Select-Queries by using =,like,etc Operraters.

In SVN 943 many Patches where done but i missed the way of
kelvinyip http://zeos.firmos.at/viewtopic.php?p=12834
to solve the Unicode Problems. :shock: This Solution was deep enough to solve the Problems i think. :roll:
Everything else where improvements.

I added it but with Compiler-Directives and some String-changes.. and it works fine! great work kelvinyip ! :up:
[s]Did some Changes on the Interfaces and killed then ZVariant.vtUnicodeString with Directives and linked everything to the String Getter&Setter. :prog:
[/s]

Download:
[s]https://rapidshare.com/files/3273860521 ... hanges.rar[/s]

Patches visible for Members...

http://zeos.firmos.at/viewtopic.php?t=2 ... c&start=43
http://zeos.firmos.at/viewtopic.php?t=3315

What do you think ZeosLIB Dev-Team?

Posted: 14.10.2011, 06:33
by kelvinyip
Hi EgonHugeist,

Just find your reply, haven't check this forum for a while.
It's great to see someone notice my sharing, although my code is dirty.
I also hope ZeosLib Dev Team can notice the UTF8 problem and check to see if the fix can help.
Anyway, thanks for your reply.