The mapping of "0x40" for the letter "g" is called an encoding. The value is encoded as the letter. Depending on the encoding, "0x40" could be the letter "g" (as in many North American and European encodings) or the Bangladeshi "Ãâ" or the Georgian "áÆÅ¾".
For multilingual encoding, Python uses Unicode. Unicode is a system that provides a unique number for every character of a language, no matter what the language.
In order to print a Unicode character, Python requires you to do two things:
- Define the character string to be printed as Unicode, and
- Declare the type of encoding you would like Python to use in the output.
