Non-English paths not working


New Member
Hi guys, I'm using django and the ols wsgi Server App.
but when I use non-English letters in the path of files, I get an error of 500.
of course, in the context settings, I set the "Add Default Charset" option to "on" and set the "Customized Default Charset" to "utf-8", but it still didn't work.
what's the solution?

it works :

it's not working :پارس/img.jpg


New Member
I edited the following file and changed the "encoding('iso-8859-1')" in the "get_bytes_from_wsgi" method to "encoding('utf-8')" and the problem was solved, but this is not a good solution
Please let me know if anyone finds a suitable solution ;)
  • /usr/local/lib/python3.7/dist-packages/django/core/handlers/