>>> a = "andré" UnicodeError: ASCII encoding error: ordinal not in range(128) Use Unicode: >>> a = unicode("andr\xe9", "iso-8859-1") >>> print a.encode("iso-8859-1") andré With a Euro keyboard you won't have to embed hex codes in your strings. Skip