I have problem with string comparison in Java. I have 2 nearly similar strings, but they are not equal, because one contains - (44) char and another contains - (8211) char. Can someone help me with case, that this strings are equals. I tried this in code, but it doesn't work:
cellValue.replaceAll("\u0045", "\u8211");
byte[] bytes = cellValue.getBytes(Charset.defaultCharset());
String cellValueUtf8 = new String(bytes, Charset.defaultCharset());