*** PyShell.py.original 2011-03-29 06:38:28.000000000 +0400 --- PyShell.py 2011-09-16 12:45:31.972641108 +0400 *************** *** 594,600 **** if isinstance(source, types.UnicodeType): from idlelib import IOBinding try: ! source = source.encode(IOBinding.encoding) except UnicodeError: self.tkconsole.resetoutput() self.write("Unsupported characters in input\n") --- 594,600 ---- if isinstance(source, types.UnicodeType): from idlelib import IOBinding try: ! source = "# coding:"+IOBinding.encoding+"\n"+source.encode(IOBinding.encoding) except UnicodeError: self.tkconsole.resetoutput() self.write("Unsupported characters in input\n")