Delphi 10.3Rio to Firebird - lang problem

The offical for ZeosLib 7.3 Report problems, ask for help, post proposals for the new version of Zeoslib 7.3/v8
Quick Info:
-We made two new drivers: odbc(raw and unicode version) and oledb
-GUID domain/field-defined support for FB
-extended error infos of Firebird
-performance ups are still in queue
In future some more feature will arrive, so stay tuned and don't hassitate to help
Post Reply
bobekrj
Fresh Boarder
Fresh Boarder
Posts: 1
Joined: 21.02.2017, 12:59

Delphi 10.3Rio to Firebird - lang problem

Post by bobekrj »

Hello
Last time I changed Delphi 2007 to 10.3Rio and I have problem with display polish letters from Firebird on DBGrid and Edits etc.
I have database with character set WIN1251and on Delphi 2007 it works ok with:

Code: Select all

object ZConnection1: TZConnection
    ControlsCodePage = cGET_ACP
    AutoEncodeStrings = False
    Properties.Strings = (
      'lc_ctype=WIN1250'
      'controls_cp=GET_ACP') 
...
Collation is not good but other things works for me ok.
When I compile the same project on Delphi 10.3 and connect to database I haven't polish signs.
I trying different settings and it not help me.
I can't change AutoEncodeStrings = False because always is True (on Delphi2007 is set to False).
In future I am planning change database to UTF8 but now I need to work on existing database WIN1251.
I tested on ZeosLib 7.2.4 and 7.3.
Can somebody help me what I must to change or what settings to test.
Many thanks.
Robert
marsupilami
Platinum Boarder
Platinum Boarder
Posts: 1939
Joined: 17.01.2011, 14:17

Re: Delphi 10.3Rio to Firebird - lang problem

Post by marsupilami »

Hello,

what setting do you have for ClientCodepage? For Unicode Delphis the following should work:

Code: Select all

object ZConnection1: TZConnection
    ClientCodepage=UTF8
    ControlsCodePage = cCP_UTF16
    AutoEncodeStrings = True
Properties should not contain a line with lc_ctype=.

Best regards,

Jan
Fr0sT
Zeos Dev Team
Zeos Dev Team
Posts: 280
Joined: 08.05.2014, 12:08

Re: Delphi 10.3Rio to Firebird - lang problem

Post by Fr0sT »

I guess where you said 1251 should be 1250 cause 1251 is Cyrillic that doesn't have Polish symbols. But anyway check again you haven't confused them
Post Reply