Error Convert NSString TO NSURL Xcode 8 Error code 256
<p>Convert NSString To NSURL </p>

<p>this is my code but i reciving null result </p>

<pre><code>NSString *Mystr = [NSString stringWithFormat:@"http://query.yahooapis.com/v1/public/yql?q=select * from yahoo.finance.xchange where pair in (\"USDEUR\")&amp;env=store://datatables.org/alltableswithkeys"];




NSURL *URLOne = [[NSURL alloc] initWithString:[Mystr stringByAddingPercentEscapesUsingEncoding:NSASCIIStringEncoding]];

NSError *error1;
NSString *strresult = [NSString stringWithContentsOfURL:URLOne
                                                encoding:NSASCIIStringEncoding
                                                   error:&amp;error1];


NSLog(@"%@", strresult);
</code></pre>

<p>here is my Error </p>

<p><strong>Error Domain=NSCocoaErrorDomain Code=256 "The file “yql” couldn’t be opened." UserInfo={<a href="http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20yahoo.finance.xchange%20where%20pair%20in%20(%22USDEUR%22)&amp;env=store://datatables.org/alltableswithkeys" rel="nofollow">NSURL=http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20yahoo.finance.xchange%20where%20pair%20in%20(%22USDEUR%22)&amp;env=store://datatables.org/alltableswithkeys</a>}</strong></p>