[fpc-devel] Trying to understand the wiki-Page "FPC Unicode support"

Jonas Maebe jonas.maebe at elis.ugent.be
Wed Nov 26 17:37:44 CET 2014


On 26/11/14 16:19, Michael Schnell wrote:
> So seemingly you could do MyStringType       = type
> AnsiString(CP_UTF16), and seemingly the size information is set
> according to this.

As several people have told you several times, that is invalid (in the
meaning of "undefined") in both FPC and Delphi. I've mentioned this on
the FPC_Unicode_support wiki page now.

CP_UTF16 and CP_UTF16BE can be returned by StringCodePage() when called
on a unicodestring, and that's it.




Jonas



More information about the fpc-devel mailing list