I love Filebrowser, finally i found what i was looking for.

But i have this problem with Swedish letters (å, ä, ö), when i choose UTF-8 as my standard encoding, the letters å ä ö just disappears, and i can't access the folder.

I use Windows Server 2008.

Comments

Nicolas Georget’s picture

Seems that this has already been discussed here #462984: Swedish characters in file names
Please have a look before if it's helpful or not. If it's not, feel free to come back to this issue.
But fyi, it works well on a Unix server.

Second thing that I don't get is:

i can't access the folder

You can't access to this folder because the "root" folder (system file path to the directory) contains swedish letters and therefore the node is not reachable?
Can you have a look in MySQL (or your own DB) and verify if the table 'node_dir_listing' and especially the field 'folder_path' contains the correct path.

Patrick Danielsson’s picture

Hello,

Thanks for the quick answer.

I've actually read that discussion, but is seems that i'ts a old discussion about a older version.

I know the root folder path is correct, beacuse when i try to download a file (or reach a folder) without å ä ö, it works.

I can't reach a folder (node) that contains å ä ö, if i do, i get to a node that shows the content in the actual root (C:/).

If I try to download a file that contains å ä ö, I can't, beacuse it doesn't exist.

Example, the name "Miljö & Säkerhet" is "Milj & Skerhet" in the node.

Patrick Danielsson’s picture

Update:
When i tried to actually make a new folder inside the module, i created a folder that i named "å ä ö", and the folder shows up perfect in Filebrowser as a node (named å ä ö)

But in the filesystem (Windows), the folder is called "Å ä ö".

And that's actually a problem, beacuse we are going to upload all files thru FTP.

Nicolas Georget’s picture

It seems that Windows is not able to access files under a UTF-8-encoded filename (Implementation of I/O libraries used by PHP on Windows).
That's why you get nothing when the root folder is using swedish letters. And reciprocally when you create a folder, Windows encode wrongly (badly!) its name in the filesystem.

After a quick search, you have to encode (again) the _fs_encoding functions in filebrowser with iconv() and not with the PHP function mb_convert_encoding() anymore. Because mb_convert_encoding() does not accept the type of encoding "cp1252" (http://en.wikipedia.org/wiki/Windows-1252 - http://www.php.net/manual/en/mbstring.supported-encodings.php)

Are you a developer? If yes, it will be easy and especially in filebrowser/includes/filesystem.inc
If you are not... I can try to modify the code (detect version of the OS, etc...) and in your case implement the iconv() but I have no Windows server to test the result...

ramsunvtech’s picture

clivesj’s picture

Issue summary: View changes
Status: Active » Closed (works as designed)

Please re-opens if still an issue.