VBS实现半角字符转全角字符

标签: , , , ,

一个简单的VBS函数,用来把半角字符转为全角字符。

url = "https://demon.tw"
WScript.Echo url
WScript.Echo Half2Full(url)

Function Half2Full(ByVal s)
    'By Demon
    'https://demon.tw
    Dim i
    For i = &H0021 To &H007E
        s = Replace(s, ChrW(i), ChrW(i + &HFEE0))
    Next
    Half2Full = s
End Function
赞赏

微信赞赏支付宝赞赏

随机文章:

  1. 利用WMI打造完美“三无”后门-U盘侦测与Autorun
  2. 注意PHP的下一个千年虫:Y2K38
  3. Unable to find the socket transport "ssl" – did you forget to enable it when you configured PHP?
  4. Windows 7 OEM Activator 1.2.14
  5. 汇编语言中的条件跳转指令Jcc

一条评论 发表在“VBS实现半角字符转全角字符”上

  1. […] « VBS实现半角字符转全角字符 […]

VBS实现全角字符转半角字符 | Demon's Blog 留下回复