Chilkat
HOME
Android™
ASP
Visual Basic
VB.NET
C#
iOS (IPhone)
Objective-C
C++
C
MFC
Delphi
FoxPro
Java
Perl
PHP Extension
PHP ActiveX
Python
PowerShell
Ruby
SQL Server
VBScript
B-Encoding
The Chilkat Email component automatically "Q" and "B" encodes header fields as necessary. However, the email object provides utility methods for encoding manually, if needed for some unforeseen reason. Dim fso, outFile Set fso = CreateObject("Scripting.FileSystemObject") Set outFile = fso.CreateTextFile("output.txt", True) set email = CreateObject("Chilkat.Email2") qEncoded = email.BEncodeBytes("magnà el véder","iso-8859-1") outFile.WriteLine(qEncoded) qEncoded = email.BEncodeBytes("magnà el véder","utf-8") outFile.WriteLine(qEncoded) ' The output of this program is: ' =?iso-8859-1?B?bWFnbuAgZWwgdulkZXI=?= ' =?utf-8?B?bWFnbsOgIGVsIHbDqWRlcg==?= outFile.Close |
© 2000-2010 Chilkat Software, Inc. All Rights Reserved.