• 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: Kai <email@hidden>
  • Date: Tue, 16 Sep 2008 09:13:54 +0200


On 15.9.2008, at 22:24, Nathan Kinsinger wrote:


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.

This was exactly what I meant. Sorry for the unclear wording.

Kai



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


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

  • Prev by Date: Re: Does NSTextField sends delegate messages to itself?
  • Next by Date: Re: Outlet from Different Implementation?
  • Previous by thread: Re: NSXMLParser and character entities?
  • Next by thread: Core Data, Bindings, NSSearchField, and NSPopUpButton
  • Index(es):
    • Date
    • Thread