| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 968 人关注过本帖
标题:怎么把地址栏中的中文加密!
只看楼主 加入收藏
foolish923
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2004-10-9
收藏
 问题点数:0 回复次数:1 
怎么把地址栏中的中文加密!
怎么把地址栏中的中文加密!
搜索更多相关主题的帖子: 中文 地址 
2004-10-09 17:37
hlc9279
Rank: 1
等 级:新手上路
帖 子:39
专家分:0
注 册:2004-9-21
收藏
得分:0 

不知道你怎么想的~~不懂你要干什么~

介绍个将中文转换为unicode

呵呵~用htmlencode可以显示unicode

<% function unicode(str) dim i,j,c,i1,i2,u,fs,f,p unicode="" p="" for i=1 to len(str) c=mid(str,i,1) j=ascw(c) if j<0 then j=j+65536 end if if j>=0 and j<=128 then if p="c" then unicode=" "&unicode p="e" end if unicode=unicode&c else if p="e" then unicode=unicode&" " p="c" end if unicode=unicode&"&#"&j&";" end if next end function function cutline(str,linelen) dim i,j,c,k cutline="" j=0 for i=1 to len(str) c=mid(str,i,1) if asc(c)<0 or asc(c)>127 then k=2 else if asc(c)<32 then k=0 if asc(c)=13 then j=0 cutline=cutline+"<br/>"+c c="" end if else k=1 end if end if j=j+k if j>linelen*2 then cutline=cutline+"<br/>"+vbCrlf+c j=k else cutline=cutline+c end if next end function function convertsymbol(sStr) dim i,c convertsymbol="" for i=1 to len(sStr) c=mid(sStr,i,1) if c=">" then convertsymbol=convertsymbol & ">" elseif c="<" then convertsymbol=convertsymbol & "<" elseif c="'" then convertsymbol=convertsymbol & "&apos;" elseif c="""" then convertsymbol=convertsymbol & """ elseif c="&" then convertsymbol=convertsymbol & "&" elseif c="$" then convertsymbol=convertsymbol & "$$" else convertsymbol=convertsymbol & c end if next end function function convertstring(sStr) dim strtemp,asctemp,c strtemp="" for i=1 to len(sStr) c=mid(sStr,i,1) asctemp=ascw(c) if (asctemp>47 and asctemp<58) or (asctemp>64 and asctemp<91) or (asctemp>96 and asctemp<123) then strtemp=strtemp & c end if next convertstring=Lcase(strtemp) end function %>

2004-10-09 18:04
快速回复:怎么把地址栏中的中文加密!
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.026203 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved