[fpc-devel] simple UTF tests

Hans-Peter Diettrich DrDiettrich1 at aol.com
Thu Jan 5 16:40:00 CET 2012

Marco van de Voort schrieb:
> In our previous episode, Michael Schnell said:
>> With Lazarus on Linux, I did some simple tests with UTF strings.
>> I found that the length of an "AnsiString(CP_UTF16)" is given in terms 
>> of bytes and not of Words. Is this like it should ?
> Yes. Afaik that is not a sane combination, but Delphi compatible.

Which Delphi version supports AnsiString(CP_UTF16)???
At least XE and successors only support byte-char (AnsiChar) codepages 
with AnsiString and RawByteString.


More information about the fpc-devel mailing list