Convert NSString To NSURL
this is my code but i reciving null result
NSString *Mystr = [NSString stringWithFormat:@"http://query.yahooapis.com/v1/public/yql?q=select * from yahoo.finance.xchange where pair in (\"USDEUR\")&env=store://datatables.org/alltableswithkeys"];
NSURL *URLOne = [[NSURL alloc] initWithString:[Mystr stringByAddingPercentEscapesUsingEncoding:NSASCIIStringEncoding]];
NSError *error1;
NSString *strresult = [NSString stringWithContentsOfURL:URLOne
encoding:NSASCIIStringEncoding
error:&error1];
NSLog(@"%@", strresult);
here is my Error
Error Domain=NSCocoaErrorDomain Code=256 "The file “yql” couldn’t be opened." UserInfo={NSURL=http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20yahoo.finance.xchange%20where%20pair%20in%20(%22USDEUR%22)&env=store://datatables.org/alltableswithkeys}