Rodolphe <robloche at fr.st> writes: > Could someone help me out with this simple problem ? Tk is returning a Unicode object to you. If you want to write that Unicode object to a byte stream, you need to encode it, e.g. with print str.encode("cp1252") Regards, Martin