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

Does not work if filename has non-English characters #335

Open
denivic opened this issue Oct 2, 2024 · 0 comments
Open

Does not work if filename has non-English characters #335

denivic opened this issue Oct 2, 2024 · 0 comments

Comments

@denivic
Copy link

denivic commented Oct 2, 2024

The following code fails if the file has æ, å or ø in it. I can imagine it would fail with other non-English characters as well. Would it be possible to fix this?

import magic as m

print(m.from_file(r'C:\Users\------\Desktop\data\æøå.pdf'))

Error:

cannot open `C:\Users\------\Desktop\data\æøå.pdf' (No such file or directory)
@denivic denivic changed the title Does not work if filename has Danish characters Does not work if filename has non-English characters Oct 2, 2024
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