On Mon, 17 Dec 2012 19:36:01 +0100, Anatoli Hristov wrote: >> src.decode() is creating a unicode string. The error is not happening >> there. But when print is used with a unicode string, it has to encode >> the data. And for whatever reason, yours is using latin-1, and you >> have a character in there which is not in the latin-1 encoding. > I fixed the print, I changed the setting of the terminal and also on the > sshconfig, so now when I print I'm able to print out without problems, > but when I tried to run the script I've made it gives me again the same > error : > ""Unexpected error: exceptions.UnicodeEncodeError """
That is not a full Python traceback. Python gives you lots of debugging information, in the form of a complete traceback. Use those tracebacks, don't ignore them. Trying to debug code without the full traceback is like trying to read a book by reading only every third page. -- Steven -- http://mail.python.org/mailman/listinfo/python-list