I have a string in this form: =?utf-8?B?zr...
=?utf-8?B?zr...
And I want to get the name of the file in proper UTF-8 encoding. Is there a library method somewhere in ma
In MIME terminology, those encoded chunks are called encoded-words. Check out javax.mail.internet.MimeUtility.decodeText in JavaMail. The decodeText method will decode all the encoded-words in a string.
decodeText
You can grab it from maven with
javax.mail mail 1.4.4