[fpc-pascal] Console Encoding in Windows (Local VS. UTF8)

Michael Schnell mschnell at lumino.de
Mon Jul 29 12:32:50 CEST 2013

On 07/29/2013 12:12 PM, Mattias Gaertner wrote:
> fpc is not "moving" to Delphi strings. That would break all 
> compatibility. 
This is exactly what Delphi did :-( .

> It will support both. 
There might be an appropriate compiler switch. But what about the 
RTL-Interface like the type StringList offers?

> Note: TStringList can be used with UTF8 except for the LoadFromFile and
> SaveToFile functions.
If the general option is set to "new Delphi Strings" and this does work 
in fully Delphi compatible way, TStringList will offer just 16 Bit 
strings as it's interface.

Using UTF8 with this would be easily possible, as this mode does 

But forcing a conversion each time when adding and when retrieving a 
String would result in sluggish behavior.


More information about the fpc-pascal mailing list