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