[fpc-pascal] How to create AnsiString with specific code page?

Abuy abbuyy at zoho.com
Wed Sep 15 11:58:33 CEST 2021


I need string with Windows-1251. Tried var msg: AnsiString(1251) but 
this does not work. What I am doing now is

var msg: rawbytestring;
begin
   SetCodePage(msg, 1251, True);
end.


More information about the fpc-pascal mailing list