Re: NSData to NSString encoding error
Re: NSData to NSString encoding error
- Subject: Re: NSData to NSString encoding error
- From: Nick Zitzmann <email@hidden>
- Date: Mon, 10 Jul 2006 11:00:29 -0600
On Jul 10, 2006, at 10:46 AM, Johan Augustsson wrote:
I want to convert an NSData to NSString using NSString's:
"initWithData:encoding:"
My data is encoded using latin1
The problem is that my special character Ö (Swedish O with dots) is
converted to "\U00d6". I use the encoding:" NSISOLatin1StringEncoding"
What could be wrong here??
Where exactly are you getting this data? The \U00d6 looks like you
tried writing a Unicode sequence in a constant string (e.g. @"\
\U00d6") but either didn't make the string localizable, didn't use
genstrings to create the localizable strings file, or didn't invoke
genstrings with the -u option.
Nick Zitzmann
<http://www.chronosnet.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