Skip to content

Commit 52bd792

Browse files
author
TerryTian-tech
committed
update 0.4.0
1 parent 428081d commit 52bd792

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

AIChat.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1485,8 +1485,8 @@ def upload_file(self):
14851485
QMessageBox.critical(self, "错误", f"读取文件失败: {e}")
14861486

14871487
def _read_file_with_encoding(self, file_path: str) -> str:
1488-
"""修复问题6:使用多种编码尝试读取文件"""
1489-
encodings = ['utf-8', 'gbk', 'gb2312', 'big5', 'shift_jis', 'latin-1']
1488+
"""使用多种编码尝试读取文件"""
1489+
encodings = ['utf-8', 'gbk', 'gb2312', 'gb18030', 'big5', 'shift_jis', 'latin-1']
14901490

14911491
for encoding in encodings:
14921492
try:

0 commit comments

Comments
 (0)