标题: VBS实现全角字符转半角字符
作者: Demon
链接: https://demon.tw/programming/vbs-full2half.html
版权: 本博客的所有文章,都遵守“署名-非商业性使用-相同方式共享 2.5 中国大陆”协议条款。
既然有《VBS实现半角字符转全角字符》,当然也有VBS实现全角字符转半角字符。
url = "http://demon.tw"
WScript.Echo url
WScript.Echo Full2Half(url)
Function Full2Half(ByVal s)
'By Demon
'https://demon.tw
Dim i
For i = &HFF01 To &HFF7E
s = Replace(s, ChrW(i), ChrW(i - &HFEE0))
Next
Full2Half = s
End Function
赞赏
微信赞赏
支付宝赞赏
随机文章: