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

Cannot parse emails when name contains emojis #102

Open
peterstavrou opened this issue Nov 25, 2024 · 0 comments
Open

Cannot parse emails when name contains emojis #102

peterstavrou opened this issue Nov 25, 2024 · 0 comments

Comments

@peterstavrou
Copy link

peterstavrou commented Nov 25, 2024

When you drag and drop emails to your desktop, some might have emoji's in the subject which causes the below error when trying to parse them.

email name example: 🔎 🔑 🚀 keyword research.eml

venv\Lib\site-packages\magic\magic.py", line 214, in maybe_decode
    return s.decode('utf-8')
           ^^^^^^^^^^^^^^^^^
UnicodeDecodeError: 'utf-8' codec can't decode bytes in position 74-76: invalid continuation byte
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