Reading Unicode from raw_input in Python

1 minute read Published: 2012-10-10

This took me too damn long to figure out in Python, so a quick note.

To obtain a unicode string in from the raw_input() function in Python, simply use a line like the following:

unicode_string = raw_input("Enter your input").decode('utf8')