Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python读取文件时提示"UnicodeDecodeError: 'gbk' codec can't decode byte 0x80 in position 205: illegal multibyte sequence" #59

Open
Topppy opened this issue Sep 3, 2021 · 0 comments

Comments

@Topppy
Copy link
Owner

Topppy commented Sep 3, 2021

解决办法1.

  

FILE_OBJECT= open('order.log','r', encoding='UTF-8')

解决办法2.

  

FILE_OBJECT= open('order.log','rb')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant