您现在的位置:首页 >> 分类信息 >> 生活论坛 >> 内容

asp将Native/Unicode编码转换

时间:2019/8/20 12:35:00 点击:

  核心提示:'ascii转换NativeFunction NativeConvertAscii(str)dim i,s,c,as=''For i=1 to Len(str)c=Mid(str,i,1)a=ASCW...

'ascii转换Native
Function NativeConvertAscii(str)
    dim i,s,c,a
    s=""
    For i=1 to Len(str)
        c=Mid(str,i,1)
        a=ASCW(c)
        If a>127 or a <0 Then
            s = s & "\u" &  right("00"& Hex(a),4)
        Else
           s=s & c
        End If
    Next
    NativeConvertAscii= s
End Function

 

 

作者:不详 来源:网络
共有评论 0相关评论
发表我的评论
  • 大名:
  • 内容:
  • 123笑话大全-短信大全-成人笑话-成人短信(www.ji-su.com.cn) © 2026 版权所有 All Rights Reserved.
  • www.ji-su.com.cn 冀ICP备05011918号
  • Powered by V3.0