[fpc-devel] TEncoding.Default and default encoding for TStrings.LoadFrom*()
Bart
bartjunk64 at gmail.com
Thu Dec 26 23:11:14 CET 2019
On Thu, Dec 26, 2019 at 9:12 PM Ondrej Pokorny <lazarus at kluug.net> wrote:
> With all the information from the docs, I am more and more convinced
> that TEncoding.SystemEncoding is superfluous and TEncoding.Default
> should take over its meaning: TEncoding.Default should reflect changes
> in DefaultSystemCodePage. Whereas TEncoding.ANSI should stay a fixed
> ANSI code page. With it there is no need for TEncoding.SystemEncoding.
I agree with Ondrej on this point.
> With this change, in the current Lazarus UTF-8 solution,
> TEncoding.Default will be UTF-8. In the future Unicode and
> Delphi-compatible FPC/Lazarus, TEncoding.Default will get the Delphi
> meaning (ANSI/UTF-8). IMO the concept is very sensible.
It would make life much easier for the Lazarus developers.
Currently we're kind of fighting the compiler, which is not good.
--
Bart
More information about the fpc-devel
mailing list