首页 > 代码库 > asp 特殊字符替换
asp 特殊字符替换
<%
Function specialstr(yourstring)
find= "¿,À,Á,Â,Ã,Ä,Å,Æ,Ç,È,É,Ê,Ë,Ì,Í,Î,Ï,Ð,Ñ,Ò,Ó,Ô,Õ,Ö,Ø,Ù,Ú,Û,Ü,Ý,Þ,ß,à,á,â,ã,ä,å,æ,ç,è,é,ê,ë,ì,í,î,ï,ð,ñ,ò,ó,ô,õ,ö,ø,ù,ú,û,ü,ý,þ,ÿ"
find = split(find,",")
replaced = "L,A,A,A,A,A,A,A,C,E,E,E,E,I,I,I,I,D,N,O,O,O,O,O,O,U,U,U,U,Y,p,B,a,a,a,a,a,a,e,c,e,e,e,e,l,l,l,l,o,n,o,o,o,o,o,o,u,u,u,u,y,p,y"
replaced = split(replaced,",")
for i = 0 to ubound(find)
for j = 0 to ubound(find)
yourstring=Replace(yourstring,find(i),replaced(i))
Next
Next
specialstr=yourstring
End Function
my = specialstr("spãner")
response.write my&"haha"
%>
asp 特殊字符替换
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。