You're replying to a comment by Roman.

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 name, if you have one. (I'm @pkrumins, btw.))

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

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