[Lazarus] Lazarus (UTF8) and Windows: SysToUTF8, UTF8ToSys... Is there a better solution?

Marco van de Voort marcov at stack.nl
Fri Dec 27 14:42:03 CET 2013


On Fri, Dec 27, 2013 at 12:15:00PM +0000, Graeme Geldenhuys wrote:
> Personally I think FPC and Lazarus should get rid of "string"
> altogether! It should be a user definable type that can be defined per
> project.
> 
> eg:
> Projects could do the following
> 
>   type
>     {$IFDEF WINDOWS}
>     UnicodeString = UTF16String
>     {$ENDIF}
>     {$IFDEF UNIX}
>     UnicodeString = UTF8String
>     {$ENDIF}
 
>    String = UnicodeString
>    // or for backwards compatibility with old projects:
>    //   String = AnsiString

Please read 4 years of discussion backlog. It is not all language, there is something called
"libraries", and they are generally installed precompiled.




More information about the Lazarus mailing list