Decode email characters

1

I am trying to import data from an email and I can get the data, however some characters come in an encoding that I did not find how to convert, for example.

Goioer=C3=AA
Paran=C3=A1

I tried utf8_decode, quoted_printable_decode, and other functions. If anyone can help.

    
asked by anonymous 01.04.2014 / 22:05

1 answer

2

When these characters come in headers, the encoding is not quite quoted-printable, but rather q-encoding. They are similar encodings, but they are different, so it does not have a specific function in PHP to decode q-encoding.

For email decoding I use the MIME E-mail Parser which decodes all kinds of messages without having to study the RFCs documents that define email standards.

    
11.04.2014 / 10:28