Skip to content
This repository has been archived by the owner on Aug 24, 2020. It is now read-only.

emoji & Special symbols decode('utf-8') error #12

Open
oyrm opened this issue Feb 27, 2018 · 3 comments
Open

emoji & Special symbols decode('utf-8') error #12

oyrm opened this issue Feb 27, 2018 · 3 comments

Comments

@oyrm
Copy link

oyrm commented Feb 27, 2018

file:types.py
modify :return payload.read(length).decode('cesu-8')
to:return payload.read(length).decode('cesu-8', errors='ignore')

Special symbols :☎☏✄☪☣☢☠♨« »큐〓㊚㊛囍㊒㊖☑✔☐☒✘㍿☯☰☷♥♠♤❤♂♀★☆☯✡※

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xed in position 7: invalid continuation byte

The solution I think of now is to ignore, if you have a good way of handling, please teach, thank you.

@Bouncner
Copy link

Hmm, I am not entirely sure whether we want to silently ignore certain chars.

@oyrm
Copy link
Author

oyrm commented Feb 27, 2018

For the code to run normally, I can only ignore it first.
I don't know if there is a better way to solve it.

@Bouncner
Copy link

Bouncner commented Mar 8, 2018

@TwoLaid What's your opinion on that?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants