Closed (works as designed)
Project:
Filebrowser
Version:
6.x-2.x-dev
Component:
Directory Listing Pages
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
16 Oct 2012 at 08:43 UTC
Updated:
2 Dec 2015 at 08:53 UTC
Jump to comment: Most recent
Comments
Comment #1
Nicolas Georget commentedSeems 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:
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.
Comment #2
Patrick Danielsson commentedHello,
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.
Comment #3
Patrick Danielsson commentedUpdate:
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.
Comment #4
Nicolas Georget commentedIt 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_encodingfunctions in filebrowser with iconv() and not with the PHP functionmb_convert_encoding()anymore. Becausemb_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.incIf 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...
Comment #5
ramsunvtech commentedKolla in det här.
http://drupal.org/node/1813960
Comment #6
clivesj commentedPlease re-opens if still an issue.