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?
AutoEncodeStrings, enable or disable? Why?
-
- Platinum Boarder
- Posts: 1956
- Joined: 17.01.2011, 14:17
Re: AutoEncodeStrings, enable or disable? Why?
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
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?
It´s clear now.
Thank you very much.
Thank you very much.