[Lazarus] UTF8String and UTF8Delete
Mattias Gaertner
nc-gaertnma at netcologne.de
Thu Dec 10 23:04:16 CET 2015
On Thu, 10 Dec 2015 19:59:26 +0100
Sven Barth <pascaldragon at googlemail.com> wrote:
> Am 10.12.2015 19:53 schrieb "Juha Manninen" <juha.manninen62 at gmail.com>:
>[...]
> > A typecast can be used as a workaround now.
> > UTF8String and AnsiString have the same memory layout so it should work.
>
> This has nothing to do with the memory layout. Both Utf8String and
> AnsiString are AnsiString types and an assignment to each other or a
> typecast will result in a codepage conversion if necessary.
What about:
UTF8Delete(AnsiString(Pointer(s)),1,1);
?
Mattias
More information about the Lazarus
mailing list