Chilkat HOME ASP Visual Basic VB.NET C# Visual C++ C MFC Delphi FoxPro Java Perl PHP Python Ruby SQL Server VBScript
|
Q-EncodingThe 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.QEncodeBytes("magnà el véder","iso-8859-1") outFile.WriteLine(qEncoded) qEncoded = email.QEncodeBytes("magnà el véder","utf-8") outFile.WriteLine(qEncoded) ' The output of this program is: ' =?iso-8859-1?Q?magn=E0_el_v=E9der?= ' =?utf-8?Q?magn=C3=A0_el_v=C3=A9der?= outFile.Close |
Need a specific example? Send a request to support@chilkatsoft.com
© 2003-2007 Chilkat Software, Inc. All Rights Reserved.