Re: what to do with this string \u00fb\u2013
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,Ub7\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