How to recover text that was encoded with base64?

2019-09-14 21:44发布

问题:

How can I recover a text that was corrupted by base64 encoding? E.g.

f('Dan=E7a')=Dança

I tried with python but couldn't get it right.

回答1:

That looks like Quoted-printable encoding, not base-64.

There's a module in the Python standard library called quopri that should be able to convert the text.