diff --git a/src/util.cpp b/src/util.cpp index b0609c144..1547408e4 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -324,6 +324,9 @@ void setup_default_locale() { << "\n"; } } +#ifdef _WIN32 + SetConsoleOutputCP(CP_UTF8); +#endif } std::string error_cp_to_utf8(std::string_view error) {