<p>Am 10.12.2015 19:53 schrieb "Juha Manninen" <<a href="mailto:juha.manninen62@gmail.com">juha.manninen62@gmail.com</a>>:<br>
><br>
> On Thu, Dec 10, 2015 at 8:18 PM, Ondrej Pokorny <<a href="mailto:lazarus@kluug.net">lazarus@kluug.net</a>> wrote:<br>
> > IMO, there should be overloaded versions for UTF8* functions that<br>
> > explicitely accept UTF8String.<br>
> > Or am I wrong?<br>
><br>
> You are right. I did not even think so far yet.<br>
> A typecast can be used as a workaround now.<br>
> UTF8String and AnsiString have the same memory layout so it should work.</p>
<p>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.</p>
<p>Regards,<br>
Sven</p>