[fpc-pascal] FPC 3 regression: cannot use TStringList for UTF-8 data any more?
Michael Van Canneyt
michael at freepascal.org
Mon Apr 4 10:34:17 CEST 2016
On Mon, 4 Apr 2016, tobiasgiesen at gmail.com wrote:
> disallowing "AnsiString" code for UTF-8 is a huge regression.
> I use TStringList for UTF-8 strings. This is no longer possible, because
> automatic conversions cause question marks and data loss.
Same answer as in my other mail. Set DefaultSystemCodePage to CP_UTF8.
> I also use a large amount of third-party libraries that use the AnsiString
> data type for UTF-8.
> I really want to use FPC 3 due to other things, but this is a deal
> breaker. Why not add a simple switch or even a run-time Boolean global
> variable to turn off codepage conversions?
> It behaves differently from Delphi too.
This depends on the version of Delphi :)
More information about the fpc-pascal