-
-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Endoding problems #29
Comments
Hi, @felagund. Windows does not support some special characters like filter_filename function is problematic with other character encoding than English. |
I am not on Windows (I am on Ubuntu). However, my filename does not have any illegal characters, Windows work with "í" in a filename perfectly right. Indeed it is problematic, probably it should e encoding aware. I know no php so cannot really offer help (and I already downlaoded the course I was interested in, thanks!). |
I think the issue is with this line 21 in filter_filename Can you remove this line and test? |
No, the problem really seems to be with the preg_replace. Commenting out the line you suggested does not change anything. I inserted echo statemens after each functino in this function and it starts coming out garbled after preg_replace already. |
Thanks. I'm removing the preg_replace for now. |
Actually, per https://stackoverflow.com/questions/19629893/does-preg-replace-change-my-character-set when
so thdt it looks like this:
the problem is solved |
Added it to main. Thanks again, Tomas. |
Hello, I think I am running to similar problems as in this bug: #8
My course has non asci characters in it and it seems to be causing problems:
When I try to download the course, it says
Downloading Návod ke kurzu Začínáme cvičit
.However, the folder created is named "Zač�-náme cvičit" (it should have been "í"; I cannot browse it with Dolphin).
When in
include/file.functions.php
I movereturn $filename;
above the$filename = preg_replace(
line, the issue disappears (I found it out by puttingecho statements after each statement in the function
filter_filename(`)The text was updated successfully, but these errors were encountered: