[Lazarus] TStringList.LoadFromFile encoding parameter

Graeme Geldenhuys mailinglists at geldenhuys.co.uk
Mon Jul 11 11:57:57 CEST 2016


On 2016-07-10 06:20, Martin Schreiber wrote:
> We always can write that "UnicodeString" is the wrong name for a reference 
> counted utf-16 string because UTF8String or AnsiString with default code page 
> set to utf-8 also is Unicode in order to express our anger about the bad 
> marketing driven decision of the Delphi owners.

G*d, I so agree with that too! I simply hate the name "UnicodeString"
implicitly implying UTF-16 only. "Unicode" is an algorithm with 3
official encodings, not just UTF-16.

Then to boot, they introduced the AnsiString mess in FPC 3.0 - which now
doesn't only mean ANSI encoding (contrary to what the name suggests), it
now means Unicode encodings too. Other compiler projects must be
laughing their asses off at Free Pascal now!

So what other types in Object Pascal can we f**k with next? Boolean, Double?

Regards,
  Graeme



More information about the Lazarus mailing list