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总结
以上是内存溢出为你收集整理的vb.net编码全部内容,希望文章能够帮你解决vb.net编码所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)