[fpc-pascal] FPC 3 regression: cannot use TStringList for UTF-8 data any more?

Jonas Maebe jonas.maebe at elis.ugent.be
Sat Apr 16 11:44:07 CEST 2016

Mattias Gaertner wrote:
> That's correct. String literals in a codepage other than system are
> stored as UTF-16 in the binary and converted on assign. The conversion
> happens at runtime, so the string codepage is decided at
> runtime.

That's correct if the assignment is to a variable/parameter that has 
codepage CP_ACP. If it's an assignment to an ansistring(some_codepage) 
(except for rawbytestring/cp_none), then the string constant gets 
converted to that codepage at compile time.


More information about the fpc-pascal mailing list