This should switch Windows cmd encoding to UTF-8: import core.sys.windows.windows : SetConsoleOutputCP; SetConsoleOutputCP(65001);