From 5034ca74f2dc0451c0afbd63c8bb905ad10c14cf Mon Sep 17 00:00:00 2001 From: zmister Date: Sat, 16 Oct 2021 15:07:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DMarkdown=E6=96=87=E9=9B=86zip?= =?UTF-8?q?=E5=8E=8B=E7=BC=A9=E5=8C=85=E5=AF=BC=E5=85=A5=E5=90=8E=E6=96=87?= =?UTF-8?q?=E6=A1=A3=E4=B9=B1=E7=A0=81=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app_doc/import_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app_doc/import_utils.py b/app_doc/import_utils.py index 58a7123..78a1ac0 100644 --- a/app_doc/import_utils.py +++ b/app_doc/import_utils.py @@ -41,7 +41,7 @@ class ImportZipProject(): for root, dirs, files in os.walk(self.temp_dir): for dir in dirs: try: - new_dir = dir.encode('cp437').decode('gbk') + new_dir = dir.encode('cp437').decode('utf-8') except: new_dir = dir.encode('utf-8').decode('utf-8') # print(new_dir) @@ -49,7 +49,7 @@ class ImportZipProject(): for file in files: try: - new_file = file.encode('cp437').decode('gbk') + new_file = file.encode('cp437').decode('utf-8') except: new_file = file.encode('utf-8').decode('utf-8') # print(root, new_file)