i encountered a problem with elFinder. When on the server there is a file or a folder containing one of the letters öäü, the directory(file) wont be shown in el finder and i get an error in
lFinderConnector.class.php json_encode(): Invalid UTF-8 sequence in argument
but if i upload a file with elFinder itself like: Test ö.png its shown correctly and on the server it looks like this: Test ö.png. Same goes for directorys.
My problem is i have a millions of files that may countain umlaute (ö,ü ,ä) and elFinder cant show them.
Does any one else got problem like this or got any idea or tip how to solwe it?
Your solution replaces the umlauts by ASCII chars, for me it worked by just using
utf8_encode()
on the items of$data
array beforejson_encode()
and outputting it (it keeps the umlauts).I took your snippet, modified it and added it to the elFinderConnector class.
Then call it on the
$data
array in theoutput()
method.