Non-Latin characters in URL (Google App Engine)

385 views Asked by At

In my project I have html file with non-Latin characters: Кондиционер.html. When i make request: www.myDomain.com/Кондиционер.html

Server sends 404 error:

Error: Not Found The requested URL /%D0%9A%D0%BE%D0%BD%D0%B4%D0%B8%D1%86%D0%B8%D0%BE%D0%BD%D0%B5%D1%80.html was not found on this server.

But with Latin latters everything works fine. What can I do to set GAE server to support such non-Latin file names?

1

There are 1 answers

0
cat On

Try this (does not work on the web-console, but in real *.py files):

print urllib.unquote("Ober%C3%B6sterreich.txt").decode("utf8")

For static files you need a redirecting request handler and an ascii-named file to which you redirect.