On 12 Jun 2012, at 12:42 PM, koko wrote: > I have international users who may have things like umlaut in file names / > paths which I may get as CStrings given our Model. > > What NS string encoding should be used to preserve the umlaut and not crash? > Is NSUTF8 OK?
UTF-8 can represent any Unicode character; if you need to store arbitrary NSStrings somewhere that only handles C-strings or bytestrings, then UTF-8 is a good choice. If you're *getting* these file names as C strings and need to convert them to NSStrings, then you need to know what encoding they are in when you get them --- we can't help you there. _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com