Sample code for 30+ languages & platforms
Java

Remove Accent Marks from Chars in String

Removes the accent marks from Latin and Central European chars in a string.

Note: The RemoveAccents method was added in Chilkat v9.5.0.91. This example requires Chilkat v9.5.0.91 or greater.

Chilkat Java Downloads

Java
import com.chilkatsoft.*;

public class ChilkatExample {

  static {
    try {
        System.loadLibrary("chilkat");
    } catch (UnsatisfiedLinkError e) {
      System.err.println("Native code library failed to load.\n" + e);
      System.exit(1);
    }
  }

  public static void main(String argv[])
  {
    boolean success = false;

    String s = "Números para Mí (Student Edition, Spanish)";

    CkStringBuilder sb = new CkStringBuilder();
    success = sb.Append(s);
    sb.RemoveAccents();

    System.out.println(sb.getAsString());

    //  Output:
    //  Numeros para Mi (Student Edition, Spanish)
  }
}