|
Posted by Taras_96 on 01/30/07 01:31
Hey Umberto,
> > Does PHP even support opening chinese filenames?
> I don't know how exactly fopen() handles strings containing characters
> other that ASCII, but it is better to not rely on the underlying file
> system for portability reasons. Always use simple ASCII characters. For
> files uploaded via HTTP, store their original name in a DB table properly
> created to support UTF-8.
I actually thought of doing this, but was wondering if PHP could in
fact do it. Never mind, I'll go along with your suggestion.
As for the file names after uploading, I had done everything you
suggested. I noticed that after choosing the filename in Firefox 1.5,
the filename got mangled in the text input section of the file input
(where the filename goes after you choose a file when browsing)! I
tried it on IE 6 and it worked correctly!! This implies to me that
there might be a bug in FF. I'll file a bug report on mozilla and see
what happens.
Taras
Navigation:
[Reply to this message]
|