Moodle Filenames with Non-ascii Characters Running IIS 7.5 and 7

Moodle Filenames with Non-ascii Characters Running IIS 7.5 and 7

by Henrik Thorn -
Number of replies: 0

 

Hi everyone

 

I struck on a problem today with file names, which contains specific danish characters (æøå). At first a thought this might be an issue with encoding, however the problem lies outside Moodle. After having debugging I found that the function ressource_pluginfile contains a varible called args, wich gets the filename in the URI. If running an IIS with Fast CGI any non ascii characters will be cut of, which will result in Moodle not being able to return the file to the user (file not found error). 

 

Microsoft has issue a hotfix for this error, which can be found at following URLs:

IIS 7.5 : http://support.microsoft.com/kb/2277918/

IIS 7.0 : http://www.microsoft.com/downloads/en/details.aspx?displaylang=en&FamilyID=c17a72bd-7009-4830-85e0-06290f3b8367

 

More information about this issue can be seen at

http://www.redolivedesign.com/utah-web-designers-blog/2010/10/18/how-to-fix-utf-8charset-problem-with-iis-7-5-and-php-fastcgi/

I hope this post will help others fix the issue, without going through hours of debugging. 

Best regards

/Henrik

Average of ratings: Useful (1)