in reply to Re^3: Saving file name with Chinese characters
in thread Saving file name with Chinese characters

ikegami,

Back to the original question: Your solution shows how to save a file when you *know* the encoding for one character.

I don't know what users will upload. So I need to convert the file names on the fly. In fact, they might not even use Chinese. They might use Korean, Japanese or just English. I need a solution that would be language independent.

Years ago, I remember seeing some Perl program that would use the bytes pragma to do the conversion. Would that help?

Thanks ikegami.

  • Comment on Re^4: Saving file name with Chinese characters

Replies are listed 'Best First'.
Re^5: Saving file name with Chinese characters
by ikegami (Patriarch) on Apr 14, 2009 at 04:10 UTC

    This new problem really has nothing to do with your original question, and should get a new thread rather than being directed at me.

    Try clearing up the problem definition while you're at it. I think you want to determine the encoding of the names of files uploaded via HTTP POST requests, but that involved guess work.