title: Best way to know if the text included in a java string contains characters in UTF-8 encoding or not
body: <p>is there any other way to know if the <code>java</code> <code>String</code> contains <code>character-encoding</code>  in <code>UTF-8</code> encoding or not ,like the Arabic words  for example .</p>
  
  <p>i tried this code : but does it accurate and make the job ?</p>
  
  <pre><code>char c = 'أ';
  int num = (int) c;
  
  if(num&gt; 128)
  // then UTF-8 characters exists 
  </code></pre>