NSXMLDocument encoding
NSXMLDocument encoding
- Subject: NSXMLDocument encoding
- From: Robert Cerny <email@hidden>
- Date: Mon, 5 May 2008 21:53:22 +0200
Hi folks,
I use NSXMLDocument to parse web page content, which is in
NSWindowsCP1250Encoding. However I don't get correctly encoded data
from NSXMLNodes
NSURLRequest *req = [NSURLRequest requestWithURL:[NSURL
URLWithString:url]];
NSData *webData = [NSURLConnection sendSynchronousRequest:req
returningResponse:&response
error:&error];
doc = [[NSXMLDocument alloc] initWithData:webData
options:NSXMLDocumentTidyHTML
error:&error];
[doc setCharacterEncoding:@"windows-1250"];
does anyone have an idea what's wrong?
Robert
_______________________________________________
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