I only get mostly normal chars, but no blocks or othersIt depends on the console settings.
Unicode and UTF8 are more than 20 years old. Time to get informed.
Or without msvcrt:
{$MODE OBJFPC} {$APPTYPE CONSOLE} uses process; var P:TProcess; C: AnsiChar; begin P:=TProcess.create(nil); P.Executable := 'C:\Windows\SysWOW64\chcp.com'; // on most systems P.Parameters.Add('850'); P.Execute; P.Free; for C in AnsiChar do Write(C); Readln; end.
Yes, deprecated, so I used the - recommended - Tprocess.