The deprecated way is good IMO, the ansistring parameter accepts the console out, like a pipe.
The other method (runcommand('chcp.com',['850'])) gives an error here:
Error: Call by var for arg no. 2 has to match exactly: Got "{Array Of Const/Constant Open} Array of Constant String" expected "AnsiString"
I am using an ide for version 3.2.2 64 bits, not lazarus.