Ver Fonte

feat: Add 'cp936' encoding to CSV reading encodings list

mrh há 1 ano atrás
pai
commit
0b8f72b19d
1 ficheiros alterados com 1 adições e 0 exclusões
  1. 1 0
      mylib/read_encoding_cvs.py

+ 1 - 0
mylib/read_encoding_cvs.py

@@ -57,6 +57,7 @@ def read_csv(file_path: str) -> List[List[str]]:
     """
     # 常见编码列表,优先尝试日文编码
     encodings_to_try = [
+        'cp936',
         'shift_jis',  # 日文常用编码
         'cp932',      # Windows日文编码
         'euc-jp',     # 日文EUC编码