I'm trying to pass letters from another language in Python through the program like this:
theWord = "阿麗思道"
theWord = theWord.decode('unicode-escape')
print theWord
I keep getting the following error:
UnicodeEncodeError: 'charmap' codec can't encode character u'\x98' in position 1: character maps to
<undefined>
It's something with setting the right unicode, but I can't find anything on it. Anyone know?
I need to get the characters to pass through exactly because I'm trying to pass them through a chinese translation program so I am trying to get the translation out.