Java后台获取前端utf-8格式 空格,使用trim()消除不了的解决办法

byte bytes[] = {(byte) 0xC2,(byte) 0xA0};
String UTFSpace = new String(bytes,"utf-8");
html = html.replaceAll(UTFSpace, " ");

posted on 2018-03-24 10:49  天生一对  阅读(734)  评论(0编辑  收藏  举报

导航