The module accepts file names with special characters that it then cannot handle. A simple example is a file name that contains an apostrophe (').
I wouldn't be surprised if some other special characters also caused problems, like the ampersand (&), followed by something that would constitute a character entity, but that is just a guess. The apostrophe is certain.
A simple proposal is to reject such files and ask the user to rename them. A slightly more complex solution would be to rename such files automatically and, for example, replace problematic characters with underscores.
Comments
Comment #1
sunThis is a Drupal core issue. You definitely should test Transliterate filenames module. Please report back if that module works for you (and mark this issue fixed if it does).
Comment #2
hgmichna commentedThanks for this information!
If this is a defect in Drupal, then I'll just wait for it to be repaired. I have no urgent issue and will, for now, make sure the file names will be simple enough for Drupal to digest.
Surely it cannot be right, in the long run, to have to install add-on modules to work around defects in Drupal.
Hans-Georg
Comment #3
sunSure, you can wait for core developers to implement a similar fix in Drupal. However, there have been many complaints about missing transliteration in core in the past. Furthermore, there are several transliteration projects and it is not yet clear which one works out best. Thus, this whole thing will need quite some time to hit core and like with any other core feature, it is initiated in contrib best.
There is quite much code needed for proper transliteration. file_translit intentionally includes that code bubble only if it is indeed required, so there should not be any performance issues. Additionally, this issue is about Drupal 5.x.
Chances that any transliteration feature in D7 or D8 will be back-ported to 5.x are nearly zero.
Comment #4
hgmichna commentedThanks for your good comments! I'll keep them in mind.
I always update my installations to the latest Drupal version, so there is always hope that I'll benefit from improvements.
Hans-Georg
Comment #5
stefano73 commented