Austin's Blog

Reading Unicode from raw_input in Python

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')