[fpc-devel] simple UTF tests

Michael Schnell mschnell at lumino.de
Mon Jan 9 11:25:05 CET 2012

On 01/09/2012 11:09 AM, Marco van de Voort wrote:
> Whatever the name is, in all current Unicode Delphi versions and FPC 
> ansistring means 8-bit string exclusively.

OK so the definition of

"AnsiString(CP_UTF16)" in FPC and
"AnsiString(1200)" in Delphi means

"an 8 bit string with data Bytes representing UTF-16 codes in low-byte-First notation".

This of course is not very straightforward, sane or portable but not illegal and not ambiguous either.

(Of course this definition should be explicitly given somewhere)


More information about the fpc-devel mailing list