Re: renaming a file with special/reserved characters in name
Re: renaming a file with special/reserved characters in name
- Subject: Re: renaming a file with special/reserved characters in name
- From: Michael Ash <email@hidden>
- Date: Sat, 28 Feb 2009 11:56:40 -0500
On Sat, Feb 28, 2009 at 11:49 AM, Shawn Erickson <email@hidden> wrote:
> On Sat, Feb 28, 2009 at 8:07 AM, Michael Ash <email@hidden> wrote:
>
>> $ python -c 'open("hello\xaa\xbb\xccworld", "w")';ls
>> helloª»Ìworld
>
> The POSIX APIs on Mac OS X expect UTF-8 paths. The above isn't UTF-8.
Well yes, that's the whole point. This is what I said:
"HFS+ only accepts non-UTF-8 by URL-encoding (!) the non-UTF-8 bytes"
You said it was incorrect. As you can see, that is exactly what
happens with non-UTF-8 text.
Did you perhaps miss the "non"?
Mike
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden