NSXMLParser and encodings
NSXMLParser and encodings
- Subject: NSXMLParser and encodings
- From: Jesus De Meyer <email@hidden>
- Date: Mon, 28 Feb 2005 13:46:36 +0100
Hi,
I was wondering if it is possible to get the encoding of a specific xml file. I know that the encoding is found in <?xml> tag, but NSXMLParser seems to skip this tag.
Could it be that the delegate method
- (void)parser:(NSXMLParser *)parser foundCharacters:(NSString *)string already takes care of the encoding for me? Because I currently convert the string I'm interested in like this:
[[NSAttributedString alloc] initWithHTML:[value dataUsingEncoding:NSUnicodeStringEncoding] documentAttributes:NULL];
Thanks in advance,
Jesus
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden