I am creating a dictionary that requires each letter of a string separated by whitespace. I am using join. The problem is when the string contains non-ascii characters. Join breaks them into two characters and the results is garbage.
Example:
>>> word = 'məsjø'
>>> ' '.join(word)
Gives me:
'm \xc9 \x99 s j \xc3 \xb8'
When what I want is:
'm ə s j ø'
Or even:
'm \xc9\x99 s j \xc3\xb8'
' '.join()works flawlessly with Python 3.x. Can you specify which OS/version of Python you're using?