I have a below string which is coming from the application:
Hotel “Lowest Rate Guaranteed” Terms and Conditions
I am trying to replace double quotes in the above statement using following line:
Tempdata = Tempdata.replace("\"", "");
System.out.println(Tempdata);
It's not working and always returning the same value but if I manually remove the above double quote and enter the double quote manually and try the same command, it works fine.
After replacing the double quote manually, the string looks like
Hotel "Lowest Rate Guaranteed" Terms and Conditions
We can see there is minor difference in the double quote. Look like the double quote which is coming from application is utf-8.
Appreciate any help. Thanks