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 _______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel