I'm developing an application which works with IMAP to receive emails from a mail server.
Everything works fine, but when I use UTF-8 characters in subject field, or the name of attached files, I receive some thing like this:
 => stdClass Object
[attribute] => NAME
[value] => =?UTF-8?B?2KfYqtit2KfYr9uM2Ycg2LXYp9iv2LEg2qnZhtmG2K/ar9in2YYuZG9j?=
How can I decode it?