[issue14777] Tkinter clipboard_get() decodes characters incorrectly

Serhiy Storchaka report at bugs.python.org
Fri May 11 20:41:50 CEST 2012


Serhiy Storchaka <storchaka at gmail.com> added the comment:

This issue can be reproduced by pure Tcl/Tk:

$ wish
% clipboard get
abc?
% clipboard get -type STRING
abc?
% clipboard get -type UTF8_STRING
abc€

Use `root.clipboard_get(type='UTF8_STRING')` in Python.

I don't know whether it should just be documented (UTF8_STRING is not even mentioned in the clipboard_get docstring), or do we need to change the default behavior.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14777>
_______________________________________


More information about the Python-bugs-list mailing list