!27 文集导入中文文件名乱码问题 首页footer不正确问题

Merge pull request !27 from 老呆瓜/master
This commit is contained in:
州的先生 2022-04-26 08:38:35 +00:00 committed by Gitee
commit ef017f75b2
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 3 additions and 3 deletions

View File

@ -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('utf-8')
new_dir = dir.encode('cp437').decode('gbk')
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('utf-8')
new_file = file.encode('cp437').decode('gbk')
except:
new_file = file.encode('utf-8').decode('utf-8')
# print(root, new_file)

View File

@ -1,5 +1,5 @@
{% load i18n %}
<div class="layui-footer" style="border-top: 1px #e6e6e6 solid;text-align:center;margin-top:38px;width:100%;">
<div class="layui-footer" style="border-top: 1px #e6e6e6 solid;text-align:center;margin-top:18px;width:100%;">
<div style="margin-top:10px;padding-bottom: 10px;">
© <a href="https://mrdoc.pro">MrDoc 2019-2021</a>&nbsp;|&nbsp;
<a href="https://zmister.com" target="_blank">州的先生</a>出品 |