Reading a text from web
Reading a text from web
- Subject: Reading a text from web
- From: Lorenzo <email@hidden>
- Date: Fri, 16 Jan 2004 14:44:01 +0100
Hi,
I have just read a text from a web site with
-------------------
NSString *urlText = [NSString stringWithContentsOfURL:theURL];
-------------------
and it contains strings like
-------------------
"
“
”
-------------------
How can I convert these strings to the right values?
All I need is a NSString containing what I can see when I open that text
page with a Browser, that is a simple readable text.
Also I tried to do:
-------------------
NSData *strData = [NSData dataWithContentsOfURL:theURL];
newStr = [[NSString alloc] initWith
Data:strData
encoding:NSISOLatin1StringEncoding];
-------------------
and I tried even NSUnicodeStringEncoding, NSUTF8StringEncoding
unsuccessfully.
Best Regards
--
Lorenzo
email: email@hidden
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.