• 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
NSPropertyListSerialization and string encoding
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSPropertyListSerialization and string encoding


  • Subject: NSPropertyListSerialization and string encoding
  • From: Joe Turner <email@hidden>
  • Date: Thu, 22 Jul 2010 20:25:35 -0500

Hello,

I'm having an issue with NSPropertyListSerialization, where I will call dataWithPropertyList:format:options:error:, to get the data from a property list–this part goes fine. However, then I need the data as a string, so I can upload it to a web service. However, when I call initWithData:encoding: to get a string (I'm using NSASCIIStringEncoding, but have tried many others as well), wherever there was a letter with an accent, weird stuff happens. Like é turns into Ä. I'm fine with losing accents, but right now, I can't even seem to do that–I just get the Ä's. Is there any way I can use a different encoding or something else to keep the accents for the time being, and then filter them out when I create the post data with dataUsingEncoding:allowLossyConversion:?

Thanks,

Joe Turner
Iced Cocoa

_______________________________________________

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

  • Follow-Ups:
    • Re: NSPropertyListSerialization and string encoding
      • From: Kyle Sluder <email@hidden>
    • Re: NSPropertyListSerialization and string encoding
      • From: James Walker <email@hidden>
  • Prev by Date: Re: Deselect keyboard focus of an NSMatrix cell
  • Next by Date: Re: NSPropertyListSerialization and string encoding
  • Previous by thread: LSUIElement vs applicationShouldTerminate:
  • Next by thread: Re: NSPropertyListSerialization and string encoding
  • Index(es):
    • Date
    • Thread