Unicode to ASCII
This commit is contained in:
parent
a73f445222
commit
5e846d2900
@ -8,6 +8,8 @@ import java.text.SimpleDateFormat;
|
||||
import java.util.Arrays;
|
||||
import java.util.Date;
|
||||
|
||||
import net.gcardone.junidecode;
|
||||
import net.gcardone.junidecode.Junidecode;
|
||||
import utility.GestisciStringhe;
|
||||
|
||||
/**
|
||||
@ -31,7 +33,7 @@ public class GestisciCodiceFiscale {
|
||||
cognome = GestisciStringhe.rimuoviCarattere(cognome, carattere);
|
||||
}
|
||||
|
||||
cognome = cognome.toLowerCase();
|
||||
cognome = Junidecode.unidecode(cognome.toLowerCase());
|
||||
|
||||
char[] caratteriCognome = cognome.toCharArray();
|
||||
int[] posizioniConsonanti = trovaConsonanti(cognome);
|
||||
@ -170,7 +172,7 @@ public class GestisciCodiceFiscale {
|
||||
nome = GestisciStringhe.rimuoviCarattere(nome, carattere);
|
||||
}
|
||||
|
||||
nome = nome.toLowerCase();
|
||||
nome = Junidecode.unidecode(nome.toLowerCase());
|
||||
|
||||
char[] caratteriNome = nome.toCharArray();
|
||||
int[] posizioniConsonanti = trovaConsonanti(nome);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user