C# Examples

ChilkatHOMEASPVisual BasicVB.NETC#Visual C++CMFCDelphiFoxProJavaPerlPHPPythonRubySQL ServerVBScript

C# Examples

Bounced Mail
Bz2
Character Encoding
CSV
Digital Certificates
Digital Signatures
Email
FTP
HTML to XML
HTTP
IMAP
Encryption
MHT / HTML Email
MIME
POP3
RSA
S/MIME
SMTP
Socket
Spider
SSH
SSH Tunnel
SSH Key
SFTP
Tar Archive
Upload
XML
XMP
Zip Compression


More Examples...
Email Object
FileAccess
RSS
Atom
String
Byte Array
Self-Extractor
Service
PPMD
Deflate
DH Key Exchange
DSA

Unreleased...
Bzip2
LZW
Icon

 

 

 

 

 

 

Convert ISO-8859-1 HTML Email to utf-8

Download Chilkat .NET for 2.0 / 3.5 Framework

Download Chilkat .NET for 1.0 / 1.1 Framework

This C# sample program demonstrates how to convert an HTML email encoded in iso-8859-1 to utf-8.

		private void button1_Click(object sender, System.EventArgs e)
		{
			Chilkat.MailMan mailman = new Chilkat.MailMan();

			mailman.UnlockComponent("30-day trial");

			Chilkat.Email email;

			// Load an email that uses the iso-8859-1 character encoding
			// for header fields, HTML body, and plain-text body.
			email = mailman.LoadEml("iso_8859_1.eml");
			textBox1.Text = email.Charset;

			// Convert the email header, the plain-text alternative body,
			// and the HTML body.
			email.Charset = "utf-8";

			// Save the converted email.
			email.SaveEml("utf8.eml");
		}

 

 

 

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

© 2000-2008 Chilkat Software, Inc. All Rights Reserved.

Email Component · XML Parser