vb.net编码

前端之家收集整理的这篇文章主要介绍了vb.net编码前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
 Public Function URLEncode(ByVal input_url As String) As String
        Dim count As Long
        Dim one_char As String
        URLEncode = ""


        For count = 1 To Len(input_url)
            one_char = Mid$(input_url,count,1)


            If InStr("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ",UCase$(one_char)) = 0 Then
                one_char = "%" & Right$("0" & Hex$(Asc(one_char)),2)
            End If
            URLEncode = URLEncode & one_char
        Next
    End Function
原文链接:https://www.f2er.com/vb/259903.html

猜你在找的VB相关文章