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

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xef #55

Open
ccholet opened this issue May 25, 2021 · 3 comments
Open

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xef #55

ccholet opened this issue May 25, 2021 · 3 comments

Comments

@ccholet
Copy link

ccholet commented May 25, 2021

Hello,

Thank you very much for this python library. It is very useful.

However sometimes, depending of the .sp file, I get an unicode decode error:
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xef in position 36: invalid continuation byte

Do you have any idea how to solve this problem ?
The encoding of my sp file seems to be ANSI.
I have tried to convert it into UTF-8, but it didn't solve the problem.

Thanks in advance.

Originally posted by @ccholet in #53 (comment)

@PierreGutierrez
Copy link

I tried the library and got the same issue.
"UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe9 in position 1: invalid continuation byte"

@Jseph-maker
Copy link

This can be corrected by modifying the 'sp.py file in the plugin folder. In the code it defines the encoding as UTF8. To correct you can either create a copy of the functions and switch the encoding or i just modified the original file and wrapped the function in a 'try' with the 'except' having a copy of the code but with 'ANSI' encoding.

@persalteas
Copy link

Same issue, solved it by editing the plugins\sp.py file and replacing the two occurrences of "utf-8" by "latin1".

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

4 participants