• 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: what to do with this string \u00fb\u2013
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: what to do with this string \u00fb\u2013


  • Subject: Re: what to do with this string \u00fb\u2013
  • From: Ricky Sharp <email@hidden>
  • Date: Mon, 13 Nov 2006 20:55:54 -0600


On Nov 13, 2006, at 8:17 PM, Jesse Grosjean wrote:

I'm trying to debug a "corrupted" string. The string was archived as readable text (or at least it was supposed to have been) in a dictionary but when it's unachieved the NSString has this content:

\u00fb\u2013\u00dc\u00c1,U b7\u2026...

If your string actually contains what you typed above (i.e. a slash, lower-case 'u', etc.) then I believe that string has been encoded with kCFStringEncodingNonLossyASCII. Such an encoding uses 7-bit ASCII characters to represent all Unicode code-points.


To work with the CF string encodings, you can use CFStringConvertEncodingToNSStringEncoding to map them to an appropriate NSStringEncoding.


I realize that it's probably an encoding problem, but I'm not really sure what the best way to turn those codes into normal text is.


Can someone give me a hint of how to turn an NSString with the above content into an NSString with readable text content?

As to if it will be readable, I agree with John Stiles in that it appears to be garbage.


___________________________________________________________
Ricky A. Sharp         mailto:email@hidden
Instant Interactive(tm)   http://www.instantinteractive.com

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: what to do with this string \u00fb\u2013
      • From: Nir Soffer <email@hidden>
References: 
 >what to do with this string \u00fb\u2013 (From: Jesse Grosjean <email@hidden>)

  • Prev by Date: Re: Creating NSBoxes with draggable divider lines
  • Next by Date: Re: Creating NSBoxes with draggable divider lines
  • Previous by thread: Re: what to do with this string \u00fb\u2013
  • Next by thread: Re: what to do with this string \u00fb\u2013
  • Index(es):
    • Date
    • Thread