I have a string in this form: =?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 maven central that will do this decoding for me, or will I need to test the pattern and decode base64 manually?
In MIME terminology, those encoded chunks are called encoded-words. Check out
javax.mail.internet.MimeUtility.decodeTextin JavaMail. ThedecodeTextmethod will decode all the encoded-words in a string.You can grab it from maven with