Am 11.12.2015 06:52 schrieb "Jürgen Hestermann" <juergen.hesterm...@gmx.de>:
>
>
>
> Am 2015-12-10 um 18:22 schrieb Juha Manninen:
>>
>> On Thu, Dec 10, 2015 at 6:49 PM, Jürgen Hestermann
>> <juergen.hesterm...@gmx.de> wrote:
>>>
>>> How can I use UTF8Delete on an UTF8string?
>>
>> You can't. Please read this :
>>   http://wiki.freepascal.org/Better_Unicode_Support_in_Lazarus
>> "String" type is UTF-8 and it works now (almost) transparently without
>> explicit conversions.
>>
> Then why does the compiler complain when I
> feed UTF8Delete with an UTF8String?

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).

Regards,
Sven
--
_______________________________________________
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to