Hi, is there smarter way how to convert buffer of UnicodeChars to AnsiString taking into account codepage conversion as:
as := String(UnicodeCharLenToString(buffer, buflen shr 1)); ? And second question if I want to avoid warnings: "Implicit conversion from WideString to AnsiString ..." in cases: as := ws; I must use only explicit typecast: as := AnsiString(ws); ? -Laco. _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal