goldsky / FileDownload-R

FileDownload snippet for MODX revolution
12 stars 7 forks source link

UTF8 and Latin #22

Closed Spica2 closed 11 years ago

Spica2 commented 11 years ago

Special Characters as ü or ä will be converted in latin on server for folder- or filenames. In diplayed links in the frontend and foldernames it is not displayed correct.

goldsky commented 11 years ago

what language are you using? for quick fix, do you mind to list the non-ASCII characters of your language?

Spica2 commented 11 years ago

language is de with äüöß

for the frontend I made a modifier for [[+fd.filename:latin2utf8]] ```return utf8_decode($input);´´´ which gives the right characters. But this does not work out for [[+fd.url]] when it got hashed.

goldsky commented 11 years ago

for this case, I suggest to use &directLink=1 so no hash will be used

Spica2 commented 10 years ago

But. Isn't modx based on utf8? Why are utf8-filenames not fully supported? &directLink=1 does not solve the problem, because foldernames are still geting hashed.