I have a requirement where i need to search with accent characters that can be for users from Iceland
and Japan
. The code which i wrote works for a few accent characters but not all.
Below example -
À - returns a. Correct.
 - returns a. Correct.
Ð - returns Ð. This is breaking. It should return e.
Õ - returns Õ. This is breaking. It should return o.
Below is my code :-
String accentConvertStr = StringUtils.stripAccents(myKey);
Tried this too :-
byte[] b = key.getBytes("Cp1252");
System.out.println("" + new String(b, StandardCharsets.UTF_8));
Please advise.