[fpc-pascal] Setting string to be UnicodeString by default

Jonas Maebe jonas.maebe at elis.ugent.be
Tue May 15 10:43:19 CEST 2012


Olivier Sannier wrote on Tue, 15 May 2012:

> Is there a way to force the string type to be an alias to  
> UnicodeString instead of AnsiString as it is by default?

It is not possible in FPC 2.6.x. Wth the svn trunk version, you can  
use {$modeswitch unicodestrings} (in combination with {$h+}), or even  
better {$mode delphiunicode} (which also enable other modeswitches  
that have been implemented for Delphi2009+ compatibility).


Jonas



More information about the fpc-pascal mailing list