Now that I have been instructed as to how to write unicode characters in Python, I would like to know if it is possible to get the unicode characters into a list, dictionary, etc.
Here is my very simple code:
a = u'\u05e9\u05dc\u05d5\u05dd!' print a print print mylist = ["qwerty","uiop",a] print mylist
The result I get is:
שלו! ['qwerty', 'uiop', u'\u05e9\u05dc\u05d5\05dd!']
The first printout is correct but when I try to insert this into the list, as can be seen, it prints out the unicode code rather than the unicode characters.
Can this be done?