From a27c1a52cbfe6670e713d82b99273b2d7e0c66c8 Mon Sep 17 00:00:00 2001 From: jiayulong Date: Tue, 30 Jun 2026 14:59:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=BA=E4=BA=86=E9=BA=92=E9=BA=9F=E5=85=BC?= =?UTF-8?q?=E5=AE=B9=EF=BC=8C=E5=B2=A9=E6=80=A7=E7=AC=A6=E5=8F=B7=E5=BA=93?= =?UTF-8?q?.lib=E7=BB=9F=E4=B8=80=E9=87=87=E7=94=A8UTF8=E7=BC=96=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- logPlus/GeoIndicatorGenerator.cpp | 1 + logPlus/GeoIndicatorGenerator.h | 2 ++ 2 files changed, 3 insertions(+) diff --git a/logPlus/GeoIndicatorGenerator.cpp b/logPlus/GeoIndicatorGenerator.cpp index 54e7fc1..23675c6 100644 --- a/logPlus/GeoIndicatorGenerator.cpp +++ b/logPlus/GeoIndicatorGenerator.cpp @@ -67,6 +67,7 @@ bool GeoIndicatorGenerator::initGeoInf(QString libName, int libNum) if(!file.open(QIODevice::ReadOnly)) return false; QTextStream stream(&file); + stream.setCodec("UTF-8"); // 设置UTF-8编码 QString line; int lineNum = 0; diff --git a/logPlus/GeoIndicatorGenerator.h b/logPlus/GeoIndicatorGenerator.h index 075be76..e058ac2 100644 --- a/logPlus/GeoIndicatorGenerator.h +++ b/logPlus/GeoIndicatorGenerator.h @@ -4,6 +4,8 @@ #include #include #include +#pragma execution_character_set("utf-8") + class GeoIndicatorGenerator { public: