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

Bart bartjunk64 at gmail.com
Thu Dec 19 23:39:46 CET 2013


On 12/19/13, Marcos Douglas <md at delfire.net> wrote:

> Well, the same problem...
> If there is no solution (for now), I prefer using SysToUTF8/ UTF8ToSys
> because is more simpler than use WideString API and conversion to
> UnicodeString, UTF8Decode, etc. Don't you think?

It fails if any of the characters is outside the current codepage
(e.g. Chinese or Taiwanese on my system). In that case the Wide API's
do work.

Bart




More information about the Lazarus mailing list