Page 1 of 1

Create folder with simplified-chinese name?

Posted: Tue Nov 16, 2010 4:25 am
by talihsu
I have one php to read data from mysql and create one folder with one data value. This value would be simplified chinese. But creating folder (mkdir) always fails. My OS locale is Traditional Chinese.
If I want to create one folder with simplified chinese name from php and don't change OS locale, how should I do? Thanks.

Re: Create folder with simplified-chinese name?

Posted: Tue Nov 16, 2010 6:28 am
by Weirdan
What's your OS?

Re: Create folder with simplified-chinese name?

Posted: Tue Nov 16, 2010 9:37 pm
by talihsu
My OS is Windows server 2008.

Re: Create folder with simplified-chinese name?

Posted: Wed Nov 17, 2010 6:33 am
by Weirdan
My OS is Windows server 2008.
You're out of luck then. Last time I checked PHP could neither create nor natively access files containing NLS characters. The only way to even read the NLS filename properly was to use COM.