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

Bart bartjunk64 at gmail.com
Sun Dec 15 16:08:35 CET 2013


We have TStringListUtf8 and TFileStreamUTF8 in LazUtf8Classes unit.

Furthermore all file routines in FileUtil and LazFileUtils do all this
conversion automatically for you. They excpest UTF8 strings as their
parameters (all LCL strings are UTF8) and (on NT based platforms) use
WideString API to implement this.

Mutatis mutandis for ParamStrUtf8.

So for basic stuff all this is already taken care of.

As for DLL, ActiveX, well that is platform specific, and you will have
to convert.

Bart




More information about the Lazarus mailing list