[fpc-pascal] FPC vs Delphi's unicode string support questions

Jonas Maebe jonas.maebe at elis.ugent.be
Sat Aug 18 17:11:01 CEST 2012


Graeme Geldenhuys wrote on za, 18 aug 2012:

> 1) Is it correct that String <> AnsiString any more?

Only in {$mode delphiunicode} (which is what you should use if you  
want to compile code written for a Delphi version in which  
string=unicodestring).

> 2) If true, what is String an alias of?  UnicodeString, WideString,  
> something else?

The same as in Delphi: unicodestring.

> 4) What Unicode encoding is used? UTF-8 or UTF-16?

The same as in Delphi: utf-16

> 5) Is it only the compiler that has unicode string type support. Has  
> anything been done or started in the RTL?

Nothing other than what's required for compiler support, and possibly  
some small extra's.


Jonas



More information about the fpc-pascal mailing list