• 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
NSXMLParser initWIthData - Encoding?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSXMLParser initWIthData - Encoding?


  • Subject: NSXMLParser initWIthData - Encoding?
  • From: Patrick Rutkowski <email@hidden>
  • Date: Fri, 21 May 2010 12:39:10 -0400

I find it disgusting that the doc section for NSXMLParser initWithData takes binary data, but doesn't tell you which encoding it's supposed to be?

Link:
http://developer.apple.com/mac/library/documentation/cocoa/reference/foundation/Classes/NSXMLParser_Class/Reference/Reference.html#//apple_ref/occ/instm/NSXMLParser/initWithData:

I'm still pretty new to XML though, does the encoding always have to be UTF-8, or perhaps always UTF-16?

Either way, which encoding does initWithData expect to get? Does it perhaps detect which encoding is being used, based on the data you give it?

-Patrick

_______________________________________________

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: NSXMLParser initWIthData - Encoding?
      • From: Kyle Sluder <email@hidden>
    • Re: NSXMLParser initWIthData - Encoding?
      • From: Keary Suska <email@hidden>
  • Prev by Date: NSWindow dataWithEPSInsideRect: giving error on 10.5
  • Next by Date: Re: NSXMLParser initWIthData - Encoding?
  • Previous by thread: NSWindow dataWithEPSInsideRect: giving error on 10.5
  • Next by thread: Re: NSXMLParser initWIthData - Encoding?
  • Index(es):
    • Date
    • Thread