Strange NSString result from NSURL ?
Strange NSString result from NSURL ?
- Subject: Strange NSString result from NSURL ?
- From: Guillaume Rager <email@hidden>
- Date: Wed, 28 Jan 2004 22:11:59 +0100
- Organization: GumiTech
Hi list,
I'm using the following code,
NSString* infobelRequest = @"
http://infobel-new.whitepages.com/find_person_results.pl?qcitycode=&qstreetcode=&qnacecode=&c=&qcode=20877912&s=AL&l=john&f=paul";
NSURL *requestURL = [NSURL URLWithString:
(NSString*)CFURLCreateStringByAddingPercentEscapes(NULL,(CFStringRef)infobelRequest,NULL,NULL,kCFStringEncodingISOLatin1)];
to get the html code of this page, there are no problems with th CoreFoundation method just here before.
Just after i do that,
NSString *htmlString = [NSString stringWithContentsOfURL:requestURL];
and the htmlString becomes unreadable, like a garbage.
I think, its not an encoding problem, i try using loading NSString thanks to NSData and many kind of encoding like utf8, iso-latin etc...
So i would like to know, if someone has the same problem, or if there is solution using webkit/webcore ?
Thank you,
Guillaume
-----
GUMITECH - R&D Unit - Niort (France)
http://www.gumitech.com
"Chaud cocoa, chaud chocolat !!!"
_______________________________________________
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.