I would like to create a wrapper for Windows cmd.exe (to feed cmd.exe with input from and display its output in a Tk application). However if non ASCII characters generated by cmd.exe are fed into a Tk text widget the result is garbage. Applying utf8 decoding results in '?' characters appearing in the place of none ASCII characters (which is slightly better). Any idea as to what decoding to apply to these characters to appear correctly in a Tk text widget?