Ver Fonte

feat: Add cp936 encoding for Simplified Chinese Windows CSV files

mrh (aider) há 1 ano atrás
pai
commit
ee99a02bf8
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

@@ -61,6 +61,7 @@ def read_csv(file_path: str) -> List[List[str]]:
         'cp932',      # Windows日文编码
         'euc-jp',     # 日文EUC编码
         'iso-2022-jp',# 日文JIS编码
+        'cp936',      # 简体中文Windows编码
         'utf-8-sig',  # UTF-8 with BOM
         'gb18030',    # 中文编码
         'big5',       # 繁体中文