From 0627b354c5cd5e940c566950f2951e3235eaae4c Mon Sep 17 00:00:00 2001
From: 雾聪 <wucong.lyb@alibaba-inc.com>
Date: 星期一, 18 十二月 2023 09:55:03 +0800
Subject: [PATCH] SetConsoleOutputCP for win

---
 runtime/websocket/bin/funasr-wss-server-2pass.cpp |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/runtime/websocket/bin/funasr-wss-server-2pass.cpp b/runtime/websocket/bin/funasr-wss-server-2pass.cpp
index 40f8f07..965f2a8 100644
--- a/runtime/websocket/bin/funasr-wss-server-2pass.cpp
+++ b/runtime/websocket/bin/funasr-wss-server-2pass.cpp
@@ -25,6 +25,10 @@
 }
 
 int main(int argc, char* argv[]) {
+#ifdef _WIN32
+  #include <windows.h>
+  SetConsoleOutputCP(65001);
+#endif
   try {
     google::InitGoogleLogging(argv[0]);
     FLAGS_logtostderr = true;

--
Gitblit v1.9.1