On Fri, May 21, 2010 at 9:39 AM, Patrick Rutkowski <rutsk...@gmail.com> wrote:
> 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?

You find it "disgusting," yet you admit you're new? Perhaps a milder
tone is warranted here?

> 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?

Please read the relevant section of the XML spec, keeping in mind that
it is non-normative:

http://www.w3.org/TR/REC-xml/#sec-guessing

--Kyle Sluder
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to