...

View Full Version : Scrambled encoding for uploads with unicode filenames



bowser1111
08-15-2008, 02:59 PM
Pretty much like the title reads...

Files with unicode chars in the filename get scrambled when I try to upload them to the server...

it seems like maybe the filename gets scrambled for multipart/form-data forms?

either that or move_uploaded_file can't handle unicode??

I really don't know the problem, but I would really love a solution!!

derzok
08-15-2008, 04:14 PM
What OS is the server running? Are there any files on the server with unicode names that can act as proof that it can work? How are you viewing the file names? An FTP client? Command line? Windows Explorer? If it's command line or FTP it's entirely possible that it's storing it properly but is not displaying it properly to your FTP/ssh client. For instance: I use PuTTY to connect to my server at home while I'm at work. Putty isn't set up for UTF-8 on this computer so when I view my files that have umlauts in them, it shows up as garbled characters (even though they are correct on the actual server) - it's just putty that's displaying it wrong.

bowser1111
08-15-2008, 07:36 PM
The OS should be able to handle it, I think because I can upload a file with a unicode name to the server, then download it again, and everything will be intact, filename and all...

it's only after sending it by a form and using move_uploaded_file() that the filename becomes scrambled.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum