unicode空格字符串转换
function filterSpace(str){str = escape(str);var txt = str.replace(/%A0/g, "%20");//将Unicode编码为A0的空格转换为20的spacereturn unescape(txt);}
发布时间: 2012-10-29 10:03:53 作者: rapoo
unicode空格字符串转换
function filterSpace(str){str = escape(str);var txt = str.replace(/%A0/g, "%20");//将Unicode编码为A0的空格转换为20的spacereturn unescape(txt);}