473,387 Members | 1,504 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

UTF-8 encoding in from and subject lines in internet standard email

I wasn't sure where to post this as there doesn't seem to be an obvious
group to discuss this. I'm writing my own internet email parser mainly
because a) I'm mad and b) I need to understand internet email standards in
more detail so it's a good way to learn.

One of the emails sent from my mobile telephone has encoded the "from" and
"subject" lines in UTF-8 format. I've got no problem with the UTF-8 format
itself (as that's documented as a draft standard) but it's the "?utp-8
prefix in front as shown in this example:

From: =?utf-8?B?Um9iIE5pY2hvbHNvbg==?= <wi***********@somewhere.com>
Subject: =?utf-8?B?U2NvcmVz?=

Does anyone know which standard covers this?

Thanks, Rob.
Aug 6 '06 #1
3 1909
From: =?utf-8?B?Um9iIE5pY2hvbHNvbg==?= <wi***********@somewhere.com>
Subject: =?utf-8?B?U2NvcmVz?=

Does anyone know which standard covers this?
Later... it's a MIME extension standard discussed here:
Aug 6 '06 #2
From: =?utf-8?B?Um9iIE5pY2hvbHNvbg==?= <wi***********@somewhere.com>
Subject: =?utf-8?B?U2NvcmVz?=

Does anyone know which standard covers this?
Later... it's a MIME extension standard discussed here:

http://www.ietf.org/rfc/rfc2047.txt

Complicated all this isn't it!!

Cheers, Rob.
Aug 6 '06 #3
One of the emails sent from my mobile telephone has encoded the "from" and
"subject" lines in UTF-8 format. I've got no problem with the UTF-8 format
itself (as that's documented as a draft standard) but it's the "?utp-8
prefix in front as shown in this example:

From: =?utf-8?B?Um9iIE5pY2hvbHNvbg==?= <wi***********@somewhere.com>
Subject: =?utf-8?B?U2NvcmVz?=

Does anyone know which standard covers this?
Start with RFC 2047.
=? utf-8 ? B ? U2NvcmVz ?=
=? charset ? encoding ? Text ?=

See here for the difference between charset and encoding:
http://www.mihai-nita.net/20060806a.shtml
--
Mihai Nita [Microsoft MVP, Windows - SDK]
http://www.mihai-nita.net
------------------------------------------
Replace _year_ with _ to get the real email
Aug 7 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

38
by: Haines Brown | last post by:
I'm having trouble finding the character entity for the French abbreviation for "number" (capital N followed by a small supercript o, period). My references are not listing it. Where would I...
16
by: lawrence | last post by:
I was told in another newsgroup (about XML, I was wondering how to control user input) that most modern browsers empower the designer to cast the user created input to a particular character...
22
by: Martin Trautmann | last post by:
Hi all, is there any kind of 'hiconv' or other (unix-like) conversion tool that would convert UTF-8 to HTML (ISO-Latin-1 and Unicode)? The database output is UTF-8 or UTF-16 only - Thus almost...
23
by: Steven T. Hatton | last post by:
This is one of the first obstacles I encountered when getting started with C++. I found that everybody had their own idea of what a string is. There was std::string, QString, xercesc::XMLString,...
3
by: Jared Wiltshire | last post by:
I'm trying to convert a wstring (actually a BSTR) to UTF-8. This is what I've currently got: size_t arraySize; setlocale(LC_CTYPE,"C-UTF-8"); arraySize = wcstombs(NULL, wstr, 0); char...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.