All pastes #416697 Raw Edit

Unnamed

public python v1 · immutable
#416697 ·published 2007-03-30 11:50 UTC
rendered paste body
>>> codec_list = ["base64_codec", "bz2_codec", "hex_codec", "idna", "mbcs", "palmos", "punycode", "quopri_codec", "raw_unicode_escape", "rot_13", "string_escape", "unicode_escape", "unicode_internal", "uu_codec", "zlib_codec", "zip"]>>> for n in codec_list:...     try:...             print a.decode(n)...     except:...             print "Error occured while decoding with ", n... bHmZBMuZError occured while decoding with  bz2_codecError occured while decoding with  hex_codecYkhtWkJNdVo=Error occured while decoding with  mbcsYkhtWkJNdVo=Error occured while decoding with  punycodeYkhtWkJNdVoYkhtWkJNdVo=LxugJxWAqIb=YkhtWkJNdVo=YkhtWkJNdVo=Error occured while decoding with  unicode_internalError occured while decoding with  uu_codecError occured while decoding with  zlib_codecError occured while decoding with  zip>>>