From 624cda3c705d2ff4781cd6453d9158b7948491fe Mon Sep 17 00:00:00 2001 From: victor <43309235@qq.com> Date: Wed, 5 Oct 2022 13:05:53 +0800 Subject: [PATCH] =?UTF-8?q?1.=20=E4=BF=AE=E5=A4=8DQT5.15.6=E4=B8=ADQTextCo?= =?UTF-8?q?dec::codecForName("System")=E8=BF=94=E5=9B=9E=E4=B8=BA0?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DSView/pv/utility/path.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DSView/pv/utility/path.cpp b/DSView/pv/utility/path.cpp index 44dcc2b7..2a19732f 100644 --- a/DSView/pv/utility/path.cpp +++ b/DSView/pv/utility/path.cpp @@ -47,7 +47,7 @@ namespace path{ std::string str; #ifdef _WIN32 - QTextCodec *codec = QTextCodec::codecForName("System"); + QTextCodec *codec = QTextCodec::codecForLocale(); QByteArray str_tmp = codec->fromUnicode(path); str = str_tmp.data(); #else @@ -57,4 +57,4 @@ namespace path{ return str; } } -} \ No newline at end of file +}