On Thu, Jun 18, 2009 at 4:50 PM, Edward K. Ream<[email protected]> wrote:
>> We should use setMimeData of QClipboard to set binary data: >> >> http://doc.trolltech.com/4.5/qclipboard.html#setMimeData > > When do we ever want to put binary data to the clipboard? Are you calling > utf-8 encoded strings binary data? Yes, utf-8 encoded strings are binary data ('bytes' on Python 3). Treating it as "text" is wrong, and we are (correctly) getting an exception for that. Utf-8 can be converted to text (unicode) by decoding it. -- Ville M. Vainio http://tinyurl.com/vainio --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "leo-editor" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/leo-editor?hl=en -~----------~----~----~----~------~----~------~--~---
