That&#x27;s not the proper way. You should rarely need encode&#x2F;decode if you make sure everything within Python is unicode. You ensure this by being specifying the encoding when getting data from external sources such as files, the network, or external libraries.