We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 285ca17 commit 81bd894Copy full SHA for 81bd894
chat.cpp
@@ -889,8 +889,10 @@ int main(int argc, char ** argv) {
889
// Windows console ANSI color fix
890
DWORD mode = 0;
891
HANDLE hConsole = GetStdHandle(STD_OUTPUT_HANDLE);
892
- if (hConsole && hConsole != INVALID_HANDLE_VALUE && GetConsoleMode(hConsole, &mode))
+ if (hConsole && hConsole != INVALID_HANDLE_VALUE && GetConsoleMode(hConsole, &mode)){
893
SetConsoleMode(hConsole, mode | ENABLE_VIRTUAL_TERMINAL_PROCESSING);
894
+ SetConsoleOutputCP(CP_UTF8);
895
+ }
896
#endif
897
898
fprintf(stderr, "%s: interactive mode on.\n", __func__);
0 commit comments