On 5 May '08, at 12:53 PM, Robert Cerny wrote:
doc = [[NSXMLDocument alloc] initWithData:webData options:NSXMLDocumentTidyHTML error:&error];
Try using -initWithContentsOfURL: instead — then it can see the HTTP headers, which might describe the encoding.
You don't get an error back in the 'error' parameter?
However I don't get correctly encoded data from NSXMLNodes
Well, what *do* you get? Show us the data and what you expected.
When I get contents of URL as NSData and convert it to [NSString initWithData:(NSData *)data encoding:(NSStringEncoding)encoding] and provide NSWindowsCP1250Encoding, I get correct result.
Then you could use the -initWithXMLString: initializer instead... —Jens
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ 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]