public static String stripAccents(String input) {
        if(input == null) {
            return null;
        }
        try {
            String result = null;
            if (InitStripAccents.java6NormalizeMethod != null) {
                result = removeAccentsJava6(input);
            } else if (InitStripAccents.sunDecomposeMethod != null) {
                result = removeAccentsSUN(input);
            } else {
                throw new UnsupportedOperationException(
                    "The stripAccents(CharSequence) method requires at least"
                        +" Java6, but got: "+InitStripAccents.java6Exception
                        +"; or a Sun JVM: "+InitStripAccents.sunException);
            }
            // Note that none of the above methods correctly remove ligatures...
            return result;
        } catch(IllegalArgumentException iae) {
            throw new RuntimeException("IllegalArgumentException occurred", iae);
        } catch(IllegalAccessException iae) {
            throw new RuntimeException("IllegalAccessException occurred", iae);
        } catch(InvocationTargetException ite) {
            throw new RuntimeException("InvocationTargetException occurred", ite);
        } catch(SecurityException se) {
            throw new RuntimeException("SecurityException occurred", se);
        }
    }
<p>Removes diacritics (~= accents) from a string. The case will not be altered.</p>
<p>For instance, '&agrave;' will be replaced by 'a'.</p>
<p>Note that ligatures will be left as is.</p>

<p>This method will use the first available implementation of:
Java 6's {@link java.text.Normalizer}, Java 1.3&ndash;1.5's {@code sun.text.Normalizer}</p>

<pre>
StringUtils.stripAccents(null)                = null
StringUtils.stripAccents("")                  = ""
StringUtils.stripAccents("control")           = "control"
StringUtils.stripAccents("&eacute;clair")     = "eclair"
</pre>

@param input String to be stripped
@return input text with diacritics removed

@since 3.0
android/android_framework/base/src/main/java/lang3/StringUtils.java