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

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

Kai



--Nathan




_______________________________________________

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 [EMAIL PROTECTED]

Reply via email to