<%
Function gb
Dim Ados
If IsNull(Text) Or Text =
Set Ados=Server
Ados
Ados
Ados
Ados
Text = Server
b =
Max = Len(Text)
For i=
c = Mid(Text
If c =
h = eval(
If h <
b = b & chr(h)
i = i+
Else
If isvalidhex(mid(Text
If isvalidhex(mid(Text
l = eval(
Ados
b = b & bytes
i = i+
Else
b = b &
i = i+
End If
End If
End If
Else
If c =
b = b &
Else
b = b & c
End If
End If
Next
Set Ados = Nothing
gb
End Function
Function isvalidhex(str)
isvalidhex=true
str=ucase(str)
If Len(str) <>
if Left(str
c = Mid(str
If Not (((c>=
c = Mid(str
If Not (((c>=
End Function
Function bytes
Dim strReturn
Dim i
strReturn =
For i =
ThisCharCode = AscB(MidB(vIn
If ThisCharCode < &H
strReturn = strReturn & Chr(ThisCharCode)
Else
NextCharCode = AscB(MidB(vIn
strReturn = strReturn & Chr(CLng(ThisCharCode) * &H
i = i +
End If
Next
bytes
End Function
%>
From:http://tw.wingwit.com/Article/program/net/201311/13717.html