Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

When extracting a message from my inbox containing the norwegian letter "ø" I find that it is encoded with 3 bytes as "=F8" or hexadecimal "0x3d4638". In UTF-8 the letter "ø" is encoded with two bytes as "0xc3b8", whereas in ISO-8859-1 it is encoded as one byte with code "0xf8".

What kind of encoding is used by my mail server when it saves incoming mail? That is, in which encoding is "ø" equal to "0x3d4638"?

share|improve this question
    
I see there is a similarity between "=F8" and hexadecimal "0xf8".. Maybe this is a clue? –  Håkon Hægland Dec 13 '13 at 14:30
    
@OlivierDulac Thanks! It is called "Quoted-printable" See here: en.wikipedia.org/wiki/Quoted-printable .You may give this as an answer, and I'll accept it. –  Håkon Hægland Dec 13 '13 at 14:53
    
There is Quoted Printable for supersets of 7-bit US-ASCII, Base64 for non-supersets of US-ASCII (notably for binary files), and variants of both for use in headers. –  ninjalj Dec 13 '13 at 15:36
add comment

1 Answer 1

up vote 3 down vote accepted

It is called quoted-printable.

I take the opportunity to link to another doc worth reading about character encodings: http://utf8everywhere.org/ [of course, not possible in emails, and that's why they use other types of encoding there... But still, good to read when you are about to choose which encoding to use!]

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.