键盘空格的ASCII码为32 不间断空格(html页面上是 )的ASCII码为160 用普通的replaceAll("\\s*","")是无法剔除的 需要使用unicode码\u00A0来做移除即为replaceAll("\\u00A0","")
ASCII
32
html
160
replaceAll("\\s*","")
unicode
\u00A0
replaceAll("\\u00A0","")