ACTIVE SERVER PAGE > URLDecode - ANSI - µðÄÚµù ÇÏÀÚ. URLDecode ÇÔ¼ö
µî·ÏÀÏ : 2017-07-04 18:12
Á¶È¸¼ö : 67,419
http://ankyu.entersoft.kr/default.asp?id=123&usr=ankyu
http%3A%2F%2Fankyu%2Eentersoft%2Ekr%2Fdefault%2Easp%3Fid%3D123%26usr%3Dankyu
Server.URLEncode ¸¦ ÅëÇÑ Encoding µÈ µ¥ÀÌÅ͸¦ ´Ù½Ã Decode ÇÏ°í ½ÍÀ» ¶§°¡ ÀÖ´Ù. ÀÌ·±°æ¿ì´Â IIS¿¡¼ ÀÚµ¿À¸·Î º¯È¯ÇØ ÁÖÁö¸¸, ÇÔ¼ö¸¦ ¸¸µé¾î
º¸¾Ò´Ù.
¾Æ·¡´Â °á°úÀÌ´Ù.
http://ankyu.entersoft.kr/default.asp?id=123&usr=ankyu
¾Æ·¡´Â ÇÔ¼ö ¼Ò½º ÀÌ´Ù.
Function URLDecode(sConvert)
Dim aSplit
Dim sOutput
Dim I
If IsNull(sConvert) Then
URLDecode = ""
Exit Function
End If
' convert all pluses to spaces
sOutput = REPLACE(sConvert, "+", " ")
' next convert %hexdigits to the character
aSplit = Split(sOutput, "%")
If IsArray(aSplit) Then
sOutput = aSplit(0)
For I = 0 to UBound(aSplit) - 1
sOutput = sOutput & Chr("&H" & Left(aSplit(i + 1), 2)) & Right(aSplit(i + 1), Len(aSplit(i + 1)) - 2)
Next
End If
URLDecode = sOutput
End Function