[Lazarus] UTF8 issue
Giuliano Colla
giuliano.colla at fastwebnet.it
Wed Sep 7 18:31:59 CEST 2016
Il 07/09/2016 15:08, Mattias Gaertner ha scritto:
> FPC does not use your LANG variable. Instead it always assumes
> ISO-8859-1. See here:
I could swallow it more easily if it were the opposite, i.e. the String
type is misinterpreted and UTF8String is properly handled.
But what happens is that the String type is handled correctly, while
UTF8String is not. IOW the compiler is told what to expect from a string
and it messes it up.
Moreover calling SetMultiByteConversionCodePage(CP_UTF8) at program
startup doesn't change a thing: String type is correct, UTF8String type
is wrong.
fpc bug?
Giuliano
More information about the Lazarus
mailing list