title: Xcode 5 - Check User Has Internet Connection - Incorrect NSStringEncoding Value 0x0000 detected
body: <p>I have code to be able to detect when the user doesn't have internet that works perfectly BUT every time its triggered a message in the Debug Area appears saying:</p>
  
  <blockquote>
    <p>Incorrect NSStringEncoding Value 0x0000 detected. Assuming NSASCIIStringEncoding. Will stop this compatibility mapping in the near future.</p>
  </blockquote>
  
  <p>How do I get rid of this message?</p>
  
  <p>Here is the code I'm using:</p>
  
  <pre><code>NSString *connect = [NSString stringWithContentsOfURL:[NSURL URLWithString:@"http://google.co.uk"] encoding:NO error:nil];
  
  if (connect == NULL) { 
  //When there isn't internet
  }
  else {
  //When there is
  }
  </code></pre>
  
  <p>Any help would be appreciated</p>