[Lazarus] UTF8String and UTF8Delete

Juha Manninen juha.manninen62 at gmail.com
Fri Dec 11 15:03:03 CET 2015


On Fri, Dec 11, 2015 at 3:45 PM, Mattias Gaertner
<nc-gaertnma at netcologne.de> wrote:
> With DisableUTF8RTL passing UTF8String to String changes encoding.

Yes and a conversion between UTF-8 and a system codepage can be lossy.

> So every function needs an overloaded wrapper function.
> No need to copy the implementation.

The functions then use String with system codepage.
A wrapper would trigger useless conversions and potentially loose data.
No, UTF8String really must be used in the implementation.

Juha




More information about the Lazarus mailing list