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

Marcos Douglas md at delfire.net
Sat Dec 21 02:11:51 CET 2013


On Fri, Dec 20, 2013 at 7:16 AM, Michael Schnell <mschnell at lumino.de> wrote:
> On 12/20/2013 12:46 AM, Juha Manninen wrote:
>>
>> Yes, Delphi does that. Future FPC versions will do automatic conversion,
>> too, but not only to UTF-16.
>
>
> It's a long winding debate whether or not this is a good idea from a
> technical POW, but as Delphi does this, FPC seems to need to follow.
>
> In fact there are decent positive aspects.
>
> But it obviously is a negative aspect if TStringList and such functions are
> implemented using a fixed encoding scheme forcing conversions to and fro
> when e.g. using TStringList as an intermediate store. Here, a "generic"
> implementation (which Delphi does not provide) would be good. IMHO this is
> doable without loosing Delphi compatibility or performance.

+1

That's I was talking about in previous mail, "using TStringList as an
intermediate store".

Marcos Douglas




More information about the Lazarus mailing list