Decode characters from email

Asked

Viewed 62 times

1

I’m trying to import data from an email and I can get the data, but some characters come in an encoding that I didn’t 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.

1 answer

2

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

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

Browser other questions tagged

You are not signed in. Login or sign up in order to post.