{"action":"closed","issue":{"url":"https://api.github.com/repos/simogeo/Filemanager/issues/244","labels_url":"https://api.github.com/repos/simogeo/Filemanager/issues/244/labels{/name}","comments_url":"https://api.github.com/repos/simogeo/Filemanager/issues/244/comments","events_url":"https://api.github.com/repos/simogeo/Filemanager/issues/244/events","html_url":"https://github.com/simogeo/Filemanager/issues/244","id":29947510,"number":244,"title":"special characters (öäü) in filename are not supported","user":{"login":"the-sz","id":7027263,"avatar_url":"https://avatars.githubusercontent.com/u/7027263?v=3","gravatar_id":"","url":"https://api.github.com/users/the-sz","html_url":"https://github.com/the-sz","followers_url":"https://api.github.com/users/the-sz/followers","following_url":"https://api.github.com/users/the-sz/following{/other_user}","gists_url":"https://api.github.com/users/the-sz/gists{/gist_id}","starred_url":"https://api.github.com/users/the-sz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/the-sz/subscriptions","organizations_url":"https://api.github.com/users/the-sz/orgs","repos_url":"https://api.github.com/users/the-sz/repos","events_url":"https://api.github.com/users/the-sz/events{/privacy}","received_events_url":"https://api.github.com/users/the-sz/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/simogeo/Filemanager/labels/enhancement","name":"enhancement","color":"535f99"},{"url":"https://api.github.com/repos/simogeo/Filemanager/labels/mvc","name":"mvc","color":"DDDDDD"},{"url":"https://api.github.com/repos/simogeo/Filemanager/labels/php","name":"php","color":"fac117"},{"url":"https://api.github.com/repos/simogeo/Filemanager/labels/user%20issue","name":"user issue","color":"5319e7"},{"url":"https://api.github.com/repos/simogeo/Filemanager/labels/wontfix","name":"wontfix","color":"0052cc"}],"state":"closed","locked":false,"assignee":{"login":"simogeo","id":154323,"avatar_url":"https://avatars.githubusercontent.com/u/154323?v=3","gravatar_id":"","url":"https://api.github.com/users/simogeo","html_url":"https://github.com/simogeo","followers_url":"https://api.github.com/users/simogeo/followers","following_url":"https://api.github.com/users/simogeo/following{/other_user}","gists_url":"https://api.github.com/users/simogeo/gists{/gist_id}","starred_url":"https://api.github.com/users/simogeo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simogeo/subscriptions","organizations_url":"https://api.github.com/users/simogeo/orgs","repos_url":"https://api.github.com/users/simogeo/repos","events_url":"https://api.github.com/users/simogeo/events{/privacy}","received_events_url":"https://api.github.com/users/simogeo/received_events","type":"User","site_admin":false},"milestone":null,"comments":17,"created_at":"2014-03-21T23:20:03Z","updated_at":"2015-08-16T14:53:38Z","closed_at":"2015-08-16T14:53:38Z","body":"If a file with a character not supported by json_encode is present, the folder will not be shown.\r\n\r\nSolution for \\connectors\\php\\filemanager.class.php\r\nadd:\r\n\tpublic function encodeArray($array) {\r\n\r\n\t\t// encode all strings as utf8\r\n\t\t$array_new=array();\r\n\r\n\t\tforeach ($array as $key=>$value)\r\n\t\t{\r\n\t\t\tif (is_array($value))\r\n\t\t\t{\r\n\t\t\t\tarray_walk_recursive($value,function (&$entry)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif (is_string($entry))\r\n\t\t\t\t\t\t\t$entry=utf8_encode($entry);\r\n\t\t\t\t\t}\r\n\t\t\t\t);\r\n\t\t\t}\r\n\t\t\telse if (is_string($value))\r\n\t\t\t\t$value=utf8_encode($value);\r\n\r\n\t\t\t$array_new[utf8_encode($key)]=$value;\r\n\r\n\t\t}\r\n\r\n\t\treturn $array_new;\r\n\t}\r\n\r\ninsert at the end of getinfo()\r\n\t\t$array = $this->encodeArray($array);\r\n\r\ninsert at the end of getfolder()\r\n\t\t$array = $this->encodeArray($array);\r\n\r\ninsert at the end of sanitize()\r\n\t$sanitized = utf8_decode($sanitized);\r\n"}}