Create folder with simplified-chinese name?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
talihsu
Forum Newbie
Posts: 2
Joined: Tue Nov 16, 2010 4:13 am

Create folder with simplified-chinese name?

Post 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.
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Re: Create folder with simplified-chinese name?

Post by Weirdan »

What's your OS?
talihsu
Forum Newbie
Posts: 2
Joined: Tue Nov 16, 2010 4:13 am

Re: Create folder with simplified-chinese name?

Post by talihsu »

My OS is Windows server 2008.
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Re: Create folder with simplified-chinese name?

Post 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.
Post Reply