Binary connection function VBScript

xiaoxiao2021-03-06  85

Public Function ConvertASC (STRIN) DIM I converatsc = "" for i = 1 to len (STRIN) DIM C: C = ASC (MID (Strin, I, 1)) IF ABS (C) <128 THEN ConvertASC = ConvertASC & ChRB (c) Else Dim h: h = hex (c) ConvertASC = ConvertASC & Chrb (int ("& H" & MID (H, 1, 2))) Convertsc = ConvertASC & ChRB (Int ("& H" & MID (H , 3, 2))) Endixten Dunction

DIM A: a = convertasc ("Hello World!") DIM B: B = ConvertASC ("Hello!")

Response.binaryWrite A B

转载请注明原文地址:https://www.9cbs.com/read-107824.html

New Post(0)