|
@@ -63,7 +63,6 @@ def read_csv(file_path: str, specified_encoding: Optional[str] = None) -> List[L
|
|
|
'cp932', # Windows日文编码
|
|
'cp932', # Windows日文编码
|
|
|
'euc-jp', # 日文EUC编码
|
|
'euc-jp', # 日文EUC编码
|
|
|
'iso-2022-jp',# 日文JIS编码
|
|
'iso-2022-jp',# 日文JIS编码
|
|
|
- 'cp936', # 简体中文Windows编码
|
|
|
|
|
'utf-8-sig', # UTF-8 with BOM
|
|
'utf-8-sig', # UTF-8 with BOM
|
|
|
'gb18030', # 中文编码
|
|
'gb18030', # 中文编码
|
|
|
'big5', # 繁体中文
|
|
'big5', # 繁体中文
|
|
@@ -126,7 +125,7 @@ def main():
|
|
|
setup_logging()
|
|
setup_logging()
|
|
|
logging.getLogger(__name__).setLevel(logging.DEBUG)
|
|
logging.getLogger(__name__).setLevel(logging.DEBUG)
|
|
|
file_path = "/home/mrh/code/excel_tool/temp/测试.csv"
|
|
file_path = "/home/mrh/code/excel_tool/temp/测试.csv"
|
|
|
- read_csv(file_path)
|
|
|
|
|
|
|
+ read_csv(file_path, 'cp936')
|
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
if __name__ == "__main__":
|
|
|
main()
|
|
main()
|