« Rebuilding a Hardwood Floor: Goodbye Creaky Entryway | Main | Get Rid of Verizon Advertizing in Email from Blackberry »

September 13, 2006

Supporting UTF-8 in Application-generated Email

If you are sending email from an application and need to tell the email client to use UTF-8 encoding to properly display the message add this header to your email message:

Content-type: text/plain; charset=UTF-8

I won't tell you how long it took me to figure that out. I knew it was just a matter of adding a header to the message before sendmail pushed it out to the next hop, but figuring out the exact syntax took forever. Googling turned up a lot of unhelpful messages, or information on how to do this programmattically in various language packages. This was an instance where I actually did want to see an email header in the search results, most of the time real snips of header (http or smtp) are irrelevant and annoying.

Posted by mike at September 13, 2006 4:24 PM

Comments

Post a comment




Remember Me?