Search found 33 matches

by tygrys
19.02.2013, 13:40
Forum: ZeosLib 7.0 Stable Forum
Topic: stringfield vs widestring field
Replies: 7
Views: 7280

Which means assign a TStringField with a UnicodeString Delphi cast the Strings down to AnsiStrings in the FieldBuffers and on reading vice versa. Curious? Yes it is. This is a right path, because table field is if fact AnsiString and the control use unicodestrings. So the conversion is right at thi...
by tygrys
19.02.2013, 07:28
Forum: ZeosLib 7.0 Stable Forum
Topic: stringfield vs widestring field
Replies: 7
Views: 7280

stringfield vs widestring field

My database is using ANSI encoding (WIN1250) My Delphi is unicode - XE. I have a code: Query.SQL.Text := 'SELECT Tekst FROM table'; with TStringField.Create(Query) do begin FieldName := 'Tekst'; Name := 'tableTekst'; Index := 0; DataSet := Query; end; Query.FieldDefs.Update; Query.Open; I get the ED...
by tygrys
19.02.2013, 06:31
Forum: ZeosLib 7.0 Stable Forum
Topic: Postgeressql varchar field size problem.
Replies: 3
Views: 589

Thanks.

I'll check how it works.
by tygrys
18.02.2013, 12:54
Forum: ZeosLib 7.0 Stable Forum
Topic: Postgeressql varchar field size problem.
Replies: 3
Views: 589

Postgeressql varchar field size problem.

Postgresql allows to use character varying field type without field size limit, this allows storying a string with any length (max about 1GB chars). Create Table test ( testfield varchar ) Now I use a query: Select * from test In this case Zeos creates a string field for 'testfield' and limits its s...
by tygrys
19.09.2012, 21:48
Forum: ZeosLib 7.0 Beta Forum
Topic: Full Unicode/Ansi-Support in /testing branch
Replies: 653
Views: 82080

Hi. I have an issue with 19.09.2012 SVN ZEOS testing branch. I'm using Delphi XE. How to reproduce: Start a new application Put ZConnection and two ZReadOnlyQuery on the form. Connect both queries to ZConnection Add whatever connection parameters to have a valid connect to any database. Add a button...
by tygrys
21.07.2012, 15:38
Forum: ZeosLib 7.0 Beta Forum
Topic: Full Unicode/Ansi-Support in /testing branch
Replies: 653
Views: 82080

@tygrys This line: BinToHex(PAnsiChar(TempString), PAnsiChar(Result), Length(TempString)); I have found only in: zeoslib\trunk\src\dbc\ZDbcDbLibUtils.pas zeoslib\branches\testing\src\dbc\ZDbcDbLibUtils.pas zeoslib\tags\7.0.0-alpha\src\dbc\ZDbcDbLibUtils.pas However, in this thread we talking about ...
by tygrys
21.07.2012, 15:32
Forum: ZeosLib 7.0 Beta Forum
Topic: Full Unicode/Ansi-Support in /testing branch
Replies: 653
Views: 82080

tygrys , Now you make me curious. I can't believe you are talking about \testing-egonhugeist. All your proposals are implemented. Just read the first post of this thread. I'm not sure about the MSSQL issue. But all other issues you report here are solved. Not on the trunk and not on testing but on ...
by tygrys
20.07.2012, 21:25
Forum: ZeosLib 7.0 Beta Forum
Topic: Full Unicode/Ansi-Support in /testing branch
Replies: 653
Views: 82080

To clarify: Firebird 1.5 does not support UTF8 encoding at all. Postgresql (if not UTF8 codepage set in conection): See ZDbcPostgreSqlUtils line 230 and 263, 311, 724, 830. I think all {$IFDEF DELPHI12_UP} and then UTF8String(SQL) should be hunted in sources and used only if the connection encoding ...
by tygrys
20.07.2012, 21:09
Forum: ZeosLib 7.0 Beta Forum
Topic: Full Unicode/Ansi-Support in /testing branch
Replies: 653
Views: 82080

Hi Egon There is a problem with ZEOS on firebird 1.5. There is no UTF8 encoding on connection, but strings are hardcoded to UTF8. Should be conditional. The problem still exists if codepage is not set to UTF8 on any other firebird version. See line 891 ZDbcInterbase6Utils.pas {$IFDEF DELPHI12_UP} Pl...
by tygrys
20.11.2010, 11:04
Forum: ZeosLib 7.0 Beta Forum
Topic: When the ZEOS 7 new version for Delphi 2010 ?
Replies: 50
Views: 8909

Hello tygrys ! And finally, when we start to work ? :D Contributing to Zeos code isn't that difficult nor is needed that you're the best developer in the world. You're probably a better developer than I am! If you aren't sure, start, propose, discuss, and someone will help you (us). That's the way ...
by tygrys
18.11.2010, 15:29
Forum: ZeosLib 7.0 Beta Forum
Topic: When the ZEOS 7 new version for Delphi 2010 ?
Replies: 50
Views: 8909

But nowadays in 7.0 the conversion is made {$IFDEF DELPHI12_UP}. And the encoding is forced to be UTF-8 As I said : I fully agree, but that's the way it has been developed by somebody who DID speand a lot of time to get things working, at leat under his development conditions. So, I'd like to talk ...
by tygrys
17.11.2010, 13:30
Forum: ZeosLib 7.0 Beta Forum
Topic: When the ZEOS 7 new version for Delphi 2010 ?
Replies: 50
Views: 8909

My idea about what *should* be done is - decide on an internal encoding to be used for sql strings and string data. Is this depending on the environment you're working in (windows/linux, locale, project setting, ...)? In that case the choice should be to use this encoding throughout the component a...
by tygrys
17.11.2010, 12:54
Forum: ZeosLib 7.0 Beta Forum
Topic: When the ZEOS 7 new version for Delphi 2010 ?
Replies: 50
Views: 8909

Hi Tygrys, I fully agree the encoding stuff looks clumsy. Main reason is : at some moment some very smart(?) people decided a string isn't a normal string anymore. What worked before just didn't anymore and we had to do a 'quick' conversion, while keeping old behaviour intact. But then, while testi...
by tygrys
09.11.2010, 00:41
Forum: ZeosLib 7.0 Beta Forum
Topic: When the ZEOS 7 new version for Delphi 2010 ?
Replies: 50
Views: 8909

Lucky you with 26 letters :-) I may understand how encodings and charsets work, but I have no knowledge on Zeos internals. So far, version 6.6 was ok for me with international character support. When I upgraded to XE I found problems with recompiling 6.6, so I installed 7.0. It compiles fine, but de...
by tygrys
31.10.2010, 21:12
Forum: ZeosLib 7.0 Beta Forum
Topic: Delphi XE and SQL encoding
Replies: 1
Views: 544

Delphi XE and SQL encoding

On some database configuration 7.0 does not work well. ie. I have Firebird 1.5 database with win1250 encoding internaly. I'm also using polish windows (that means win1250 ansi internal) and I set connection properties to codepage=win1250. It works fine under delphi 2006, but under XE it destroys nat...