• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: String Encoding
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >String Encoding (From: koko <email@hidden>)

  • Prev by Date: String Encoding
  • Next by Date: CLANG linker returning "illegal text-relocation to..." for x64
  • Previous by thread: String Encoding
  • Next by thread: Re: String Encoding
  • Index(es):
    • Date
    • Thread