I\'m working with mails, and names and subjects sometimes come q-encoded, like this:
=?UTF-8?Q?J=2E_Pablo_Fern=C3=A1ndez?=
Is there a way t
The most efficient and up to date solution it seems to use the value_decode method of the Mail gem.
value_decode
> Mail::Encodings.value_decode("=?UTF-8?Q?Greg_of_Google?=") => "Greg of Google"
https://www.rubydoc.info/github/mikel/mail/Mail/Encodings#value_decode-class_method