0

The below is feasible in Java. Is there a way to do the same in Apex?

String subjectString = "öäü"; 
subjectString = Normalizer.normalize(subjectString, Normalizer.Form.NFD); 
String resultString = subjectString.replaceAll("[^\\x00-\\x7F]", "");        
        => will produce "oau"
1
  • See this answer. There is no normalize equivalent in Apex but you can write a method that works in a similar way.
    – nbrown
    May 27 at 19:09

Browse other questions tagged or ask your own question.