<p>Am 11.12.2015 06:52 schrieb "Jürgen Hestermann" <<a href="mailto:juergen.hestermann@gmx.de">juergen.hestermann@gmx.de</a>>:<br>
><br>
><br>
><br>
> Am 2015-12-10 um 18:22 schrieb Juha Manninen:<br>
>><br>
>> On Thu, Dec 10, 2015 at 6:49 PM, Jürgen Hestermann<br>
>> <<a href="mailto:juergen.hestermann@gmx.de">juergen.hestermann@gmx.de</a>> wrote:<br>
>>><br>
>>> How can I use UTF8Delete on an UTF8string?<br>
>><br>
>> You can't. Please read this :<br>
>> <a href="http://wiki.freepascal.org/Better_Unicode_Support_in_Lazarus">http://wiki.freepascal.org/Better_Unicode_Support_in_Lazarus</a><br>
>> "String" type is UTF-8 and it works now (almost) transparently without<br>
>> explicit conversions.<br>
>><br>
> Then why does the compiler complain when I<br>
> feed UTF8Delete with an UTF8String?</p>
<p>UTF8Delete probably takes an AnsiString (or String) as var parameter and for var parameters the static codepages have to match exactly (String has CP_ACP while Utf8String has CP_UTF8).</p>
<p>Regards,<br>
Sven</p>