Unicode strings in Python
A character encoding tells the computer how to interpret raw zeroes and ones into real characters. There are many different types of character encodings floating around at present, but the ones we deal most frequently with are ASCII , 8-bit encodings, and Unicode-based encodings. The Unicode Standard provides a unique number for every character, no matter what platform, device, application or language.
In Python 3, all strings are sequences of Unicode characters . You have two options to create Unicode string in Python. Either use decode() , or create a new Unicode string with UTF-8 encoding by unicode(). The unicode() method is unicode(string[, encoding, errors]) , its arguments should be 8-bit strings. The first argument is converted to Unicode using the specified encoding, if encoding argument left, the ASCII encoding is used for the conversion.