php 5.1.6 function basename not suport chinese file name under windows
oscnet - March 5, 2007 - 01:39
| Project: | Drupal |
| Version: | 5.1 |
| Component: | upload.module |
| Category: | bug report |
| Priority: | minor |
| Assigned: | Unassigned |
| Status: | won't fix |
Jump to:
Description
worked in 4.7.
in 5.1 when upload a file like 中文.doc, the file url change to http://www.foo.com/files/DOC and description is DOC,
in 4.7 it will be http://www.foo.com/files/中文.doc with 中文.doc as description.

#1
I had found it is because of php function basename
basename('中文.doc') return .doc
PHP version :
5.1.6
os windows.
also had tested under linux. it worked well.
#2