VBScript Examples

ChilkatHOMEASPVisual BasicVB.NETC#Visual C++CMFCDelphiFoxProJavaPerlPHPPythonRubySQL ServerVBScript

VBScript Examples

Bounced Mail
Character Encoding
Digital Certificates
Digital Signatures
Email
FTP
HTML-to-XML
HTTP
IMAP
Encryption
MHT / HTML Email
PFX
RSA Encryption
S/MIME
Socket
Spider
String
Tar
Upload
XML
XMP
Zip Compression
Self-Extractor

More Examples...
Email Object
POP3
SMTP
Byte Array
RSS
Atom

Unreleased...
Service
PPMD
Deflate
Bzip2
LZW
Bz2
DH Key Exchange
DSA
Icon

 

 

 

 

 

 

 

Decode HTML Entities to Shift_JIS

Decodes HTML entities to Shift JIS. Saves the Japanese character data to a file, and displays the byte values.

Download Chilkat Charset ActiveX

set charset = CreateObject("Chilkat.Charset2")

'  Any string argument automatically begins the 30-day trial.
success = charset.UnlockComponent("30-day trial")
If (success <> 1) Then
    MsgBox "Charset component unlock failed"
    WScript.Quit
End If

'  Decodes HTML entities and returns Shift_JIS characters.
charset.ToCharset = "Shift_JIS"

'  
Dim byteData

byteData = charset.HtmlEntityDecode("&#12373;&#x3055;&#x304B;&#x304D;")

' Save the bytes to a file.
charset.WriteFile "out_shiftJis.txt", byteData

' Display the Shift_JIS bytes.
Dim s
s = ""
For i = 1 To LenB(byteData)
    s = s & CStr(AscB(MidB(byteData, i, 1))) & ","
Next
MsgBox s

Need a specific example? Send a request to support@chilkatsoft.com

© 2003-2007 Chilkat Software, Inc. All Rights Reserved.

Mail Component · XML Parser