general03 / flask-autoindex

Generates index page like mod_autoindex
https://flask-autoindex.readthedocs.io
MIT License
112 stars 35 forks source link

UnicodeEncodeError when special characters in folder/file names #65

Open ghost opened 1 year ago

ghost commented 1 year ago

Hi,

we are very happily using flask-autoindex to enable browsing through our server's file system. However, we get a UnicodeEncodeError if there is a file/folder with special characters (in our case Umlaute) in the dirtree. It seems as if macros.html line 10: <a href="{{ url_for(endpoint, path=ent.path) }}"> is responsible for it. Is there any way to solve this issue? (Python 3.8 on Ubuntu 20.04)