Wednesday, February 01, 2012
encoding decoding strings in python3.x
I like to think of encoding of strings in python3 to the analogy of encrypting your plain text into a random stream of bytes
string (plain text) -> encode (encrypt) -> bytes (stream)
bytes (stream) -> decode (decrypt) -> string (plain text)
and the codec you choose is your key (utf-8 ...)
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment