소스 검색

fix https://github.com/blueloveTH/pocketpy/issues/106

...
blueloveTH 2 년 전
부모
커밋
4d9699f290
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  1. 6 0
      src2/main.cpp

+ 6 - 0
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 ? "... " : ">>> ");