how to tell if a string is base64 or not
问题 I have many emails coming in from different sources. they all have attachments, many of them have attachment names in chinese, so these names are converted to base64 by their email clients. When I receive these emails, I wish to decode the name. but there are other names which are not base64. How can I differentiate whether a string is base64 or not, using the jython programming language? Ie. First attachment: ------=_NextPart_000_0091_01C940CC.EF5AC860 Content-Type: application/vnd.ms-excel;