encoding of file names
encoding of file names
- Subject: encoding of file names
- From: Chris Idou <email@hidden>
- Date: Mon, 23 May 2011 21:22:31 -0700 (PDT)
If I take a string from an NSTextField with an accented character: café and I
make this into a file name and write a file, then I read that file name back in
(using NSFileManager contentsOfDirectoryAtPath), then the string read back in,
still looks the same: an accented café, but the strings don't compare anymore.
The one in the text field was unichars: 99,97,102,233 and the one in the file
name is now 99,97,102,101,769.
What does it mean, and how can I make sure I get them both the same and
comparable?
_______________________________________________
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