[fpc-pascal] Conversion of buffer of UnicodeChars to AnsiString
LacaK
lacak at zoznam.sk
Tue Jan 22 10:29:50 CET 2019
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.
More information about the fpc-pascal
mailing list