17年5个月前IP:未同步
144991
3楼

    
Public Function Unicode(ByVal Chinese As String) As String
        Dim tmp As String = Chinese
        Dim tmpBy As Byte() = System.Text.Encoding.UTF8.GetBytes(tmp)
        Dim newBy As Byte() = System.Text.Encoding.Convert(System.Text.Encoding.UTF8, System.Text.Encoding.Default, tmpBy)
        Dim URL As String = ""
        For i As Long = 0 To newBy.Length - 1
            URL = URL + "%" + Hex(newBy(i)).ToString.Trim
        Next
        'Return ("XXXXXXXXXXXXXXXXXXXXXXX" + URL.Trim)
        Return (URL.Trim)
    End Function

评论
文号 / 144991

万流景仰
名片发私信
学术分 30
总主题 651 帖总回复 6037 楼拥有证书:学者 笔友
注册于 2007/04/10 19:15:00最后登录 2018/01/10 01:07:34
主体类型:个人
所属领域:无
认证方式:邮箱
IP归属地:0

个人简介

暂未填写
笔记
{{note.content}}
{{n.user.username}}
{{fromNow(n.toc)}} {{n.status === noteStatus.disabled ? "已屏蔽" : ""}} {{n.status === noteStatus.unknown ? "正在审核" : ""}} {{n.status === noteStatus.deleted ? '已删除' : ''}}
  • 编辑
  • 删除
  • {{n.status === 'disabled' ? "解除屏蔽" : "屏蔽" }}
我也是有底线的