From 04ff4fda3983b2220cd0e822940dc79dddffa467 Mon Sep 17 00:00:00 2001 From: CRGBS <32331418+CRGBS@users.noreply.github.com> Date: Wed, 24 May 2023 14:39:25 +0800 Subject: [PATCH] Update common.cpp --- examples/common.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/common.cpp b/examples/common.cpp index 07875f1df..4ead54fdf 100644 --- a/examples/common.cpp +++ b/examples/common.cpp @@ -522,7 +522,7 @@ void console_init(console_state & con_st) { // Turn off ICANON (ENABLE_LINE_INPUT) and ECHO (ENABLE_ECHO_INPUT) dwMode &= ~(ENABLE_LINE_INPUT | ENABLE_ECHO_INPUT); SetConsoleMode(hConIn, dwMode); - + }else{ // Set console input codepage to UTF8 _setmode(_fileno(stdin), _O_U8TEXT); // Set locale to Chinese Simplified UTF-8