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

Bart bartjunk64 at gmail.com
Wed Sep 15 12:32:44 CEST 2021


On Wed, Sep 15, 2021 at 12:14 PM Abuy via fpc-pascal
<fpc-pascal at lists.freepascal.org> wrote:

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

This should work

type
  StringCP1251 = AnsiString(1251)
var
  S: StringCP1251;


-- 
Bart


More information about the fpc-pascal mailing list