title: How to check string is English or German or any other language other than English using java
body: <p>I have to prepare a property file where key is English and value can be other than English, like German, Chinese, Korean, French. I read key and value from xml file. I used one linkedhashmap, as sequence also matters, now if:</p>
  
  <ol>
  <li>first encounters key and value both are English, I inserted in map, next time if key is same but value can be in German, then I to replace English word with German.</li>
  <li>if first time I found English key with German value, i hv to do nothing. </li>
  </ol>
  
  <p>I tried to get bytcodes with UTF-8 but it works for korean or chines but not in German.</p>
  
  <pre><code>byte[] bytes = value.replace(" ", "").getBytes("UTF-8");
  </code></pre>
  
  <p>or</p>
  
  <pre><code>if(value.charAt(i)&gt;=128){
      ret = false;
  }
  </code></pre>
  
  <p>I need a method which accept string as input, if string is English return true, rest for all language it should return false.</p>
  
  <pre><code>boolean isEng(String abc){
  if(abc is english)
  return true;
  }
  else
  return false
  }
  </code></pre>
  
  <p>abc = "Change Password" should return true,
  abc = "Changer le mot de passe" should return false</p>