jeudi 21 juillet 2016

Python encoding out with base64 decode

I have a trouble in my code... I try to decode a base64 string bug stdout is really bad...

# -*- coding:utf8 -*-

import socket, string, re, base64, binascii,codecs,sys

valeur = base64.b64decode('eJwzKUnJS09PKXW1dEwLLTYz9MrJ8jPOMSgEAGjMCCQ=')

print(valeur.decode('unicode_escape'))

It does to out :

x3)IKOO)utL-6331(h$

But is out : enter image description here

I doesn't know how to solve this problem...

Aucun commentaire:

Enregistrer un commentaire