I'm trying to capitalize and normalize unicode characters on a String, but none of the methods work as expected. Here is the related code:
String in = input.getText().toString();
in.toUpperCase();
System.out.println(in);
in= Normalizer.normalize(in,Normalizer.Form.NFC);
System.out.println(in);
stripOut.setText(in);
First the "toUpperCase()" method doesn't do nothing. Second the "Normalize" method doesn't remove the accents but move them to the next character. Input-Output examples:
Input: φάε ήλιο δεν ξέρεις
UpperCase.out﹕ φάε ήλιο δεν ξέρεις
Normalize.out φάε ήλιο δεν ξέρεις
Input: Βέλγιο φορά δρόμους γιατί
UpperCase.out: Βέλγιο φορά δρόμους γιατί
Normalize.out: Βέλγιο φορά δρόμους γιατί
Any ideas?