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

Jonas Maebe jonas.maebe at elis.ugent.be
Sun Apr 24 21:36:13 CEST 2016

vfclists . wrote:
> Isn't some formality in these Unicode discussions called for? Use of
> everyday language to express things which can only be properly expressed
> and tested through source code is very confusing.

The formal definitions can be found at 

> Consider these few sentences by Mattias
>  >>>>
> It depends.
> There are two codepages. The real one and the one you tell the
> compiler.
> If you tell the compiler that the string literal is 8-bit system
> codepage, it will copy it without conversion to the binary.
> Otherwise it converts it to UTF-16
>  >>>>
> How do you know what the "real" codepage is at runtime or compile time,
> as opposed to "the one you tell the compiler"?

On the aforementioned page:
* "the one you tell the compiler": the source file code page if 
explicitly specified
* "the real code page": the value of DefaultSystemCodePage on startup of 
your program


More information about the fpc-pascal mailing list