In the line you need to replace all the letters "і" Ukrainian with the letters "i" English
private String ChangeI (String strChangeLine) { String strChangeResult = ""; Character charTmp; String strTmp=""; for (int iteration = 0; iteration < strChangeLine.length(); iteration++) { charTmp= strChangeLine.charAt(iteration); strTmp = charTmp.toString(); String str1 = "i"; String str2 = "І"; byte[] strCode1 = str1.getBytes(); byte[] strCode2 = str2.getBytes(); System.out.println(str1.getBytes()); System.out.println(str2.getBytes()); if (strTmp.getBytes() == strCode1) strTmp = "i" ; if (strTmp.getBytes() == strCode2) strTmp = "I" ; strChangeResult+=strTmp; } System.out.println(strChangeResult); return(strChangeResult); } I wrote this method here, but it does not work correctly, tell me who can distinguish between English and Cyrillic "i"
s.replace("і", "i").replace("І", "I");Does not help? - andrybak