WORKING WITH UNICODE
Python supports Unicode, which means that you can render characters in different languages. Unicode data can be stored and manipulated in the same way as strings. Create a Unicode string by prepending the letter “u,” as shown here:
>>> u'Hello from Python!' u'Hello from Python!'
Special characters can be included in a string by specifying their Unicode value. For example, the following Unicode string embeds a space (which has the Unicode value 0x0020) in a string:
>>> u'Hello\u0020from Python!' u'Hello from Python!'
Listing A.1 displays the contents of Unicode1.py that illustrates how to display a string of characters in Japanese and another string of characters in Chinese (Mandarin).
Listing A.1: Unicode1.py
chinese1 = u'\u5c07\u63a2\u8a0e HTML5 \u53ca\u5176\
u4ed6'
hiragana = u'D3 \u306F \u304B\u3063\u3053\u3043\u3043 \
u3067\u3059!'
print('Chinese:',chinese1...