You're viewing a comment by Roman and its responses.

Roman Permalink
September 29, 2009, 09:16

"Don’t forget to encode it to the right encoding before outputting, otherwise you’ll get errors such as “UnicodeEncodeError: ‘latin-1′ codec can’t encode characters in position 0-3: ordinal not in range(256)”"

That's rather weird. Your terminal is (apparently) configured to accept UTF-8, why does Python attempt to convert the string to Latin-1?

Reply To This Comment

(why do I need your e-mail?)

(Your twitter handle, if you have one.)

Type the word "apple_158": (just to make sure you're a human)

Please preview the comment before submitting to make sure it's OK.