windows - Is Writeln capable of supporting Unicode? -
consider program: {$apptype console} begin writeln('АБВГДЕЖЅzЗИІКЛМНОПҀРСТȢѸФХѾЦЧШЩЪЫЬѢѤЮѦѪѨѬѠѺѮѰѲѴ'); end. the output on console uses consolas font is: ????????z?????????????????????????????????????? the windows console quite capable of supporting unicode evidenced program: {$apptype console} uses winapi.windows; const text = 'АБВГДЕЖЅzЗИІКЛМНОПҀРСТȢѸФХѾЦЧШЩЪЫЬѢѤЮѦѪѨѬѠѺѮѰѲѴ'; var numwritten: dword; begin writeconsole(getstdhandle(std_output_handle), pchar(text), length(text), numwritten, nil); end. for output is: АБВГДЕЖЅzЗИІКЛМНОПҀРСТȢѸФХѾЦЧШЩЪЫЬѢѤЮѦѪѨѬѠѺѮѰѲѴ can writeln persuaded respect unicode, or inherently crippled? just set console output codepage through setconsoleoutputcp() routine codepage cp_utf8 . program project1; {$apptype console} uses system.sysutils,windows; const text = 'АБВГДЕЖЅzЗИІКЛМНОПҀРСТȢѸФХѾЦЧШЩЪЫЬѢѤЮѦѪѨѬѠѺѮѰѲѴ'; var numwritten: dword; begin readln; // make sure consolas font...