Think of decoding as what you do to go from a regular bytestring to unicode and encoding as what you do to get back from unicode. In other words: You de - code a str to produce a unicode string and en - code a unicode string to produce an str. So: unicode