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

Marco van de Voort marcov at stack.nl
Sun Dec 22 19:56:19 CET 2013


On Sun, Dec 15, 2013 at 06:13:32PM +0100, Reinier Olislagers wrote:
> > FPC's context.
> > These components do not use Lazarus' routines and that is the BIG
> > problem. I need to "remember" in pass only ANSI strings for these
> > components as remember to convert the component's output string
> > results to use in Lazarus.
> 
> Why not just include a project reference to LCLBase (IIRC that should be
> enough) and just always use the LCL units until FPC catches up?

FPC 2.7.x can compile the windows unit in unicode (UTF16) mode. Most system and 
sysutils file related routines are already unicode (UTF16 with Rawbytestring
overload).





More information about the Lazarus mailing list