On Sun, Dec 29, 2013 at 7:26 PM, Hans-Peter Diettrich <drdiettri...@aol.com>wrote:
> > var a: AnsiString; u: UTF8String; > function cpy(s: RawByteString):RawByteString; > begin Result := s; end; > a := cpy(u); //now a has encoding UTF-8! > > Here the XE compiler omits the conversion of the RawByteString result to > the declared encoding of the target. Dunno about newer versions. > A quick note: the new LLVM Delphi compiler forbid the use of AnsiString and AnsiChar, (declared in the unit AnsiString.pas, you cannot use this unit anyway), you will probably choose to hack using MarshaledAString.
_______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel