Page 1 of 1

AutoEncodeStrings, enable or disable? Why?

Posted: 03.02.2022, 20:37
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?

Re: AutoEncodeStrings, enable or disable? Why?

Posted: 04.02.2022, 12:12
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

Re: AutoEncodeStrings, enable or disable? Why?

Posted: 04.02.2022, 13:49
by hamacker
It´s clear now.
Thank you very much.