nginx/windows autoindex module URL charset problem

f3zz nginx-forum at nginx.us
Tue Mar 8 03:15:21 MSK 2011


OS: Windows 7 (non-unicode code page: 936 Simplified Chinese)


URL in autoindex page is encoded in code page 936 (two byts per
character), all file containing Chinese character cannot be accessed in
autoindex listing.

Example:
Windows.Server.2003网络专业指南.pdf        original filename

Windows.Server.2003%cd%f8%c2%e7%d7%a8%d2%b5%d6%b8%c4%cf.pdf      wrong
result in nginx/windows 0.8.54 autoindex URL

Windows.Server.2003%E7%BD%91%E7%BB%9C%E4%B8%93%E4%B8%9A%E6%8C%87%E5%8D%97.pdf
     correct URL in UTF-8

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,181112,181112#msg-181112




More information about the nginx mailing list