First of all,sorry for my English, I am not good at it.
I found many answer about how to upload utf-8 named file, and many of them suggest installing 'transliteration module' to convert the file name to ASCII (Chinese pinyin, e.g. zhong-wen.txt instead of 中文.txt).
But,the name of file is long, ugly (e.g. zhe-shi-yi-ge-zhong-wen-wen-jian-ming.txt instead of 这是一个中文文件名.txt) and not clear. Actually I must use UTF-8 file name, because my CMS need it! I don't want to use transliteration.
So,is there any way to upload UTF-8 named file in DRUPAL7? like module, 'change code', etc.
Thanks for everyone!
P.S. I have installed Mediawiki and upload many chinese name file. My PHP and APACHE support that. The issue is only in drupal.
Comments
Comment #1
xlsoul commentedComment #2
droplet commentedHere: #278425: Using basename() is not locale safe
Comment #3
xlsoul commentedSorry for my careless reply. I will try it immediately.
Comment #4
xlsoul commentedAwesome! That PATCH is ok for my DRUPAL7, Thankyou!
But I have to say it is a very important BUG in DRUPAL, and It must be pay attention to.
Comment #5
xlsoul commentedComment #6
droplet commentednps. 沒問題 :)
Comment #7.0
(not verified) commenteddelete a wrong code