We are getting some special chars in java so i am doing UTF-8 encoding later i want to compare the coder string and original string.I could not able to get it how to compare in java. Could you please help me how to solve this problem.
String name = java.net.URLEncoder.encode("Šantel", "UTF-8");
String org = "Santel";
System.out.println(name);
System.out.println(name.contentEquals(org));
I want to compare name and org string this should return true.
Could you please help me..
Thanks Best Regards Vijay Kumar