[Lazarus] Garbage writing to console

Luca Olivetti luca at wetron.es
Thu Feb 22 15:05:06 CET 2018


El 22/02/18 a les 13:46, Luca Olivetti via Lazarus ha escrit:
> El 22/02/18 a les 13:07, Tony Whyman via Lazarus ha escrit:
>> You may find the "SetTextCodePage" procedure useful when it comes to 
>> setting the code page for a Windows console.
>>
>> e.g. SetTextCodePage(stdout,cp_utf8);
> 
> Same result: garbage with writeln, correct result with w

Unsurprising since it's already cp_utf8 (according to GetTextCodePage)

Bye
-- 
Luca Olivetti
Wetron Automation Technology http://www.wetron.es/
Tel. +34 93 5883004 (Ext.3010)  Fax +34 93 5883007


More information about the Lazarus mailing list