diff --git a/src2/main.cpp b/src2/main.cpp index 6ddf15f4..17bac000 100644 --- a/src2/main.cpp +++ b/src2/main.cpp @@ -68,6 +68,12 @@ int main(int argc, char** argv){ if(argc == 1){ void* repl = pkpy_new_repl(vm); + +#if _WIN32 + SetConsoleCP(CP_UTF8); + SetConsoleOutputCP(CP_UTF8); +#endif + bool need_more_lines = false; while(true){ std::cout << (need_more_lines ? "... " : ">>> ");