{"action":"created","issue":{"url":"https://api.github.com/repos/nao-pon/elFinder/issues/15","labels_url":"https://api.github.com/repos/nao-pon/elFinder/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/nao-pon/elFinder/issues/15/comments","events_url":"https://api.github.com/repos/nao-pon/elFinder/issues/15/events","html_url":"https://github.com/nao-pon/elFinder/issues/15","id":122221008,"number":15,"title":"Search box doesn't work for cp1251","user":{"login":"Winand","id":53390,"avatar_url":"https://avatars.githubusercontent.com/u/53390?v=3","gravatar_id":"","url":"https://api.github.com/users/Winand","html_url":"https://github.com/Winand","followers_url":"https://api.github.com/users/Winand/followers","following_url":"https://api.github.com/users/Winand/following{/other_user}","gists_url":"https://api.github.com/users/Winand/gists{/gist_id}","starred_url":"https://api.github.com/users/Winand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Winand/subscriptions","organizations_url":"https://api.github.com/users/Winand/orgs","repos_url":"https://api.github.com/users/Winand/repos","events_url":"https://api.github.com/users/Winand/events{/privacy}","received_events_url":"https://api.github.com/users/Winand/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-15T08:43:43Z","updated_at":"2015-12-22T13:30:36Z","closed_at":"2015-12-16T11:44:25Z","body":"As you know, i've set `encoding=cp1251`.) But search box doesn't find files with cyrillic symbols, there's no such an issue with latin filenames.\r\nI use elfinder-2.x-88c7e9d."},"comment":{"url":"https://api.github.com/repos/nao-pon/elFinder/issues/comments/166618808","html_url":"https://github.com/nao-pon/elFinder/issues/15#issuecomment-166618808","issue_url":"https://api.github.com/repos/nao-pon/elFinder/issues/15","id":166618808,"user":{"login":"nao-pon","id":1412630,"avatar_url":"https://avatars.githubusercontent.com/u/1412630?v=3","gravatar_id":"","url":"https://api.github.com/users/nao-pon","html_url":"https://github.com/nao-pon","followers_url":"https://api.github.com/users/nao-pon/followers","following_url":"https://api.github.com/users/nao-pon/following{/other_user}","gists_url":"https://api.github.com/users/nao-pon/gists{/gist_id}","starred_url":"https://api.github.com/users/nao-pon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nao-pon/subscriptions","organizations_url":"https://api.github.com/users/nao-pon/orgs","repos_url":"https://api.github.com/users/nao-pon/repos","events_url":"https://api.github.com/users/nao-pon/events{/privacy}","received_events_url":"https://api.github.com/users/nao-pon/received_events","type":"User","site_admin":false},"created_at":"2015-12-22T13:30:36Z","updated_at":"2015-12-22T13:30:36Z","body":"What about next solution?\r\n\r\nphp/elFinderVolumeDriver.class.php L.4104-\r\n```php\r\n\tprotected function stripos($haystack , $needle , $offset = 0) {\r\n\t\tif (function_exists('mb_stripos')) {\r\n\t\t\treturn mb_stripos($haystack , $needle , $offset);\r\n\t\t} else if (function_exists('mb_strtolower') && function_exists('mb_strpos')) {\r\n\t\t\treturn mb_strpos(mb_strtolower($haystack), mb_strtolower($needle), $offset);\r\n\t\t} \r\n\t\treturn stripos($haystack , $needle , $offset);\r\n\t}\r\n```\r\nto\r\n```php\r\n\tprotected function stripos($haystack , $needle , $offset = 0) {\r\n\t\t$encoding = $this->encoding? $this->encoding : 'UTF-8';\r\n\t\tif (function_exists('mb_stripos')) {\r\n\t\t\treturn mb_stripos($haystack , $needle , $offset, $encoding);\r\n\t\t} else if (function_exists('mb_strtolower') && function_exists('mb_strpos')) {\r\n\t\t\treturn mb_strpos(mb_strtolower($haystack, $encoding), mb_strtolower($needle, $encoding), $offset);\r\n\t\t} \r\n\t\treturn stripos($haystack , $needle , $offset);\r\n```"}}