<%
str = "wd=%D0%C2%CE%C5"
Function UrlUncode(str)
okstr = ""
hexvalue = "&H"
starthx = 0
slen = len(str)
for i=1 to slen
c = mid(str,i,1)
if starthx = 0 then
if c="%" then
starthx = 1
else
okstr = okstr & c
end if
else
if c<>"%" then
hexvalue = hexvalue & c
end If
If len(hexvalue) = 6 then
okstr = okstr & chr(hexvalue)
hexvalue = "&H"
starthx = 0
End If
End if
next
UrlUncode = okstr
End Function
response.Write("<br>"&UrlUncode(str))
%>