Encode & decode in Python

Encode&decode

gb2312

=?gb2312?b?1cq7p9Lss6O1x8K8u+62rw==?=

base64.b64decode("1cq7p9Lss6O1x8K8u+62rw==").decode("GBK")

结果: ‘帐户异常登录活动’

Author

Karobben

Posted on

2020-01-22

Updated on

2024-01-11

Licensed under

Comments