UCS-2 LE BOM python pandas

 encoding='utf-16'

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte
gbk

gb2312

都试过了,还是encoding='utf-16'好使。

参考

【utf-16】

https://stackoverflow.com/questions/14488346/python-3-reading-ucs-2-be-file

【编码格式讲解】

https://blog.csdn.net/m0_38080253/article/details/78841280

你可能感兴趣的:(UCS-2 LE BOM python pandas)