- You need a console that supports Unicode <== don't understand
So basically fix the above.
program Project1; {$codepage utf8} uses windows; begin SetConsoleOutputCP(CP_UTF8); writeln(#$e2#$96#$ba); readln; end.
IIRC the crt unit resets the console codepage upon every write it does.
Bart
IIRC the crt unit resets the console codepage upon every write it does.
Is there any way to circumvent this? Then I could set my own codepages as needed (e.g., before and after writes).
After searching through all files on my Lazarus distribution (2.0.2, FPC 3.0.4), I couldn't find either SetSafeCPSwitching or SetUseACP.
After searching through all files on my Lazarus distribution (2.0.2, FPC 3.0.4), I couldn't find either SetSafeCPSwitching or SetUseACP.
They are part of fpc. If you used the official installer, then that is in a subfolder of your install.
They are part of fpc. If you used the official installer, then that is in a subfolder of your install.
After searching through all files on my Lazarus distribution (2.0.2, FPC 3.0.4), I couldn't find either SetSafeCPSwitching or SetUseACP.
They are part of fpc. If you used the official installer, then that is in a subfolder of your install.
Not in FP 3.0.4; they'll be in 3.2