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)
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?Error: