• 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: NSData to NSString encoding error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >NSData to NSString encoding error (From: Johan Augustsson <email@hidden>)

  • Prev by Date: Re: Out-of-order Undos and NSTextField
  • Next by Date: Re: Re: Objects as keys NSMutableDictionary
  • Previous by thread: NSData to NSString encoding error
  • Next by thread: Re: NSData to NSString encoding error
  • Index(es):
    • Date
    • Thread