extern kernel32 { SetConsoleCP(cp UInt) SetConsoleOutputCP(cp UInt) ExitProcess(code UInt) } const cp { utf8 65001 } init() { kernel32.SetConsoleCP(cp.utf8) kernel32.SetConsoleOutputCP(cp.utf8) main.main() exit() } exit() { kernel32.ExitProcess(0) }