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. <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> </head> <body> <% set email = Server.CreateObject("Chilkat.Email2") qEncoded = email.BEncodeBytes("magnà el véder","iso-8859-1") Response.Write qEncoded & "<br>" qEncoded = email.BEncodeBytes("magnà el véder","utf-8") Response.Write qEncoded & "<br>" ' The output of this program is: ' =?iso-8859-1?B?bWFnbuAgZWwgdulkZXI=?= ' =?utf-8?B?bWFnbsOgIGVsIHbDqWRlcg==?= %> </body> </html> |
© 2000-2012 Chilkat Software, Inc. All Rights Reserved.