Chilkat HOME ASP Visual Basic VB.NET C# Visual C++ Delphi FoxPro Java Perl 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.
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> </head> <body> <% set email = Server.CreateObject("Chilkat.Email2") qEncoded = email.QEncodeBytes("magnà el véder","iso-8859-1") Response.Write qEncoded & "<br>" qEncoded = email.QEncodeBytes("magnà el véder","utf-8") Response.Write qEncoded & "<br>" ' 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?= %> </body> </html> |
Need a specific example? Send a request to support@chilkatsoft.com
© 2000-2008 Chilkat Software, Inc. All Rights Reserved.