• 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: NSXMLParser and character entities?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSXMLParser and character entities?


  • Subject: Re: NSXMLParser and character entities?
  • From: Nathan Kinsinger <email@hidden>
  • Date: Mon, 15 Sep 2008 14:24:15 -0600


On Sep 15, 2008, at 1:45 PM, Kai wrote:


Of course if the content really is XHTML you should really be using an HTML parser and not an XML one.

No, it isn’t. Just needs some way to encode all German characters. I’ll have to investigate whether simply using utf8 encoding is an option, though.


--Nathan

Thanks a lot for your very helpful answer Kai

Someone who knows more about unicode can correct me if I'm wrong, but I don't think &auml; is an utf8 (or any other string) encoding. The point I was trying to make is that &auml; and such are specifically defined by HTML.


XML supports utf8 so you can just use german text without the HTML entities. Or rather it can, if you use <?xml version="1.0" encoding="UTF-8"?> as your XML declaration (this is typically the default). NSXMLParser will parse it correctly.

--Nathan



_______________________________________________

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 and character entities?
      • From: Kai <email@hidden>
References: 
 >NSXMLParser and character entities? (From: Kai <email@hidden>)
 >Re: NSXMLParser and character entities? (From: Nathan Kinsinger <email@hidden>)
 >Re: NSXMLParser and character entities? (From: Kai <email@hidden>)

  • Prev by Date: Re: async NSOperation and NSOperationQueue
  • Next by Date: NSXMLParser
  • Previous by thread: Re: NSXMLParser and character entities?
  • Next by thread: Re: NSXMLParser and character entities?
  • Index(es):
    • Date
    • Thread