0

What are the strings that python can decode?

hi = "647361647361"
lolly = hi.decode("hex")
print lolly

What are other .decode functions that are present in python? other than ("hex")? is there a full list?

3
  • 4
    You really should use google....docs.python.org/2/library/codecs.html#standard-encodings Commented Sep 2, 2015 at 23:04
  • Be aware that Python 3 changes things greatly. Don't get used to doing things in a way that won't be supported later. Commented Sep 2, 2015 at 23:05
  • hi.decode("hex") could be written more durably as binascii.unhexlify(hi). Commented Sep 2, 2015 at 23:08

1 Answer 1

1

The full list for python 2.7.x is here in 7.8.3 and 7.8.4

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.