AutoEncodeStrings, enable or disable? Why?

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
hamacker
Junior Boarder
Junior Boarder
Posts: 37
Joined: 13.10.2021, 15:15

AutoEncodeStrings, enable or disable? Why?

Post by hamacker »

Hi devs,
I would like to know when I need AutoEncodeStrings enabled or disabled? I keep searching but I can find about.
Can someone patient explain to me?
In Databases like FirebirdSQL generally I use charset ISO8859_1, is it right AutoEncodeStrings disabled?
I think that I need to use AutoEncodeStrings enabled when I need to transfer database to another in different encoding or when I need to SQL.LoadFromFile when file is UTF-8 and my database use ISO8859_1. Am I right?
marsupilami
Platinum Boarder
Platinum Boarder
Posts: 1939
Joined: 17.01.2011, 14:17

Re: AutoEncodeStrings, enable or disable? Why?

Post by marsupilami »

Hello hamacker,

on Zeos 7.3 / 8.0 AutoEncodeStrings should not exist anymore. If you still have it, you can ignore it. It is just there for backwardscompatibility, so DFM files that were created with Zeos 7.2 installed can be read.

AutoEncodeStrings tried to detect UTF8 vs. ANSI in Zeos 7.2. But it was deprecated for good reasons. It has nothing to do with the database character set or the connection character set. On modern Delphi / Lazarus applications I recommend to alsways use UTF8 as the connection character set. Using something different only makes sense on older ANSI Delphis (Delphi 7 - Delphi 2007).

Best regards,

Jan
hamacker
Junior Boarder
Junior Boarder
Posts: 37
Joined: 13.10.2021, 15:15

Re: AutoEncodeStrings, enable or disable? Why?

Post by hamacker »

It´s clear now.
Thank you very much.
Post Reply