Understand the encoding/decoding of Python strings (Unicode/UTF-8)
Demystify Python string encoding/decoding
String is a common data type in Python and is used by us every day. In this article, the basics of the encoding/decoding of strings will be introduced which can clear your confusion in this field. At the end of the article, two methods to generate unique hashes from strings with encoding/decoding are introduced, which shall be helpful for your work.