title: Get Encoding type of NSData
body: <p>I have some chunks of data that are encoded with random techniques, say first chunk is encoded by <code>NSUTF8StringEncoding</code> another one with <code>NSASCIIStringEncoding</code> or <code>kCFStringEncodingWindowsArabic</code>. </p>
  
  <p>I don't know which chunk is encoded with which type of encoding. I have tried multiple options e.g. if result is nil then decode with <code>NSNonLossyASCIIStringEncoding</code>, but to no avail. Is there any way to determine a specific chunk of data is encoded with type of Encoding ?</p>
  
  <p>Any help will be appreciated.</p>