I have a java string with \" \" from a text file the program accesses with a Buffered Reader object. I have tried string.replaceAll(\"
\" \"
string.replaceAll(\"
This is a two step process:
strLineApp = strLineApp.replaceAll("&"+"nbsp;", " "); strLineApp = strLineApp.replaceAll(String.valueOf((char) 160), " ");
This worked for me. Hope it helps you too!