[Lazarus] Lazarus (UTF8) and Windows: SysToUTF8, UTF8ToSys... Is there a better solution?
Marco van de Voort
marcov at stack.nl
Thu Dec 26 16:04:45 CET 2013
On Thu, Dec 26, 2013 at 12:28:54AM +0100, Hans-Peter Diettrich wrote:
> > is dangerous if they are not all the same encoding. If there is any
> > mismatch, it will be converted down to default encoding.
>
> Then the implementation is wrong.
Wrong according to you. Not wrong according to defined Microsoft
applications.
This way of top-down thinking will turn FPC into a Java, where you are
lugging along an own platform-within-an-platform everywhere.
IMHO this is not desirable.
> > There is no utf8 on Windows.
>
> Yep, that's why the Unicode (W) API should be used. No problem with
> UTF-8 strings there :-)
If you totally drop Delphi compatibility you can do whatever you want. But
IMHO that is more something for the Graeme's and Martin (MSEGUI's) of the
world, not Lazarus.
More information about the Lazarus
mailing list