title: How to get an alphanumeric String from any string in Java?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/1453171/n-n-n-or-remove-diacritical-marks-from-unicode-cha">ń ǹ ň &#241; ṅ ņ ṇ ṋ ṉ ̈ ɲ ƞ ᶇ ɳ ȵ --&gt; n or Remove diacritical marks from unicode chars</a><br>
    <a href="https://stackoverflow.com/questions/4283351/how-to-replace-special-characters-in-a-string">How to replace special characters in a string?</a>  </p>
  </blockquote>
  
  
  
  <p>I would like to format some String such as <code>"I&gt;Télé"</code> to something like <code>"itele"</code>.
  The idea is that I want my String to be lower case (done), without whitespaces (done), no accents or special characters (like <code>&gt;</code>, <code>&lt;</code>, <code>/</code>, <code>%</code>, <code>~</code>, <code>é</code>, <code>@</code>, <code>ï</code> etc).</p>
  
  <p>It is okay to delete occurences of special characters, but I want to keep letters while removing accents (as I did in my example). Here is what I did, but I don't think that the good solution is to replace every é,è,ê,ë by "e", than do it again for "i","a" etc, and then remove every special character...</p>
  
  <pre><code>String name ="I&gt;télé" //example
  String result = name.toLowerCase().replace(" ", "").replace("é","e").........;
  </code></pre>
  
  <p>The purpose of that is to provide a valid filename for resources for an Android app, so if you have any other idea, I'll take it !</p>