Re: String Encoding
Re: String Encoding
- Subject: Re: String Encoding
- From: Wim Lewis <email@hidden>
- Date: Tue, 12 Jun 2012 12:51:15 -0700
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 (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