Error in base64 module

jun won, Seo linuxqna at
Sat Sep 2 10:20:23 CEST 2000


I have a string "xde9usauwd8"
I want to base64decoding that string "xde9usauwd8".

In PHP3's function imap_base64()

  result = imap_base64("xde9usauwd8")

    result is "Å×½ºÆ®Áß"

but Python 1.5.2

    import base64
    result = base64.decodestring("xde9usauwd8")

I meat a Error Message

binascii.Error: Incorrect padding

Error in Python's base64 module?

More information about the Python-list mailing list