Re: NSXMLParser and character entities?
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 ä is an utf8 (or any other string) encoding. The
point I was trying to make is that ä 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