Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.0.0RC8

Bug #13760 XP encoding problem if file name contains both space and non-ascii chars
Submitted: 2008-04-24 01:28 UTC
From: hholzgra Assigned: hholzgra
Status: Assigned Package: HTTP_WebDAV_Server (version 1.0.0RC4)
PHP Version: Irrelevant OS: Windows XP
Roadmaps: 1.1    
Subscription  


 [2008-04-24 01:28 UTC] hholzgra (Hartmut Holzgraefe)
Description: ------------ (original text copied from bug #4971) On Windows XP, if a filename contains both space characters and non-ascii characters, such as an "รค" (lower case character a with diaeresis), then the WebDAV client of Windows XP displays the space character as the following character sequence "%20". Test script: --------------- I changed the _urlencode() function into the following to alleviate the problem: function _urlencode($path) { $c = explode('/', $path); for ($i = 0; $i < count($c); $i++) { $c[$i] = str_replace('+','%20',urlencode($c[$i])); } return implode('/', $c); }

Comments

 [2008-04-24 01:32 UTC] hholzgra (Hartmut Holzgraefe)
The code in this area has changed quite a bit, most likely this is already fixed. Can't test this right now due to lack of working XP system though, so keeping this bug open for now ...