下面这个函数只是个示例,先在前页替换特殊字符为汉字的特殊字符(也就是换成unicode编码字符)然后在接收页再替换成原来的特殊字符,这样做你看看行不行?
将特殊字符替换成汉字的
function Replace_Text(text){
var strTmp=text
strTmp=strTmp.replace("@", "@")
strTmp=strTmp.replace("?", "?")
strTmp=strTmp.replace("&", "&")
strTmp=strTmp.replace("'", "‘")
strTmp=strTmp.replace("<", "〈")
strTmp=strTmp.replace(">", "〉")
return strTmp}