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.
In reply to Re^4: Saving file name with Chinese characters
by Anonymous Monk
in thread Saving file name with Chinese characters
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |