win32clipboard.SetClipboardData doesn't support Unicode

Vladimir Alexiev <[email protected]> Mon, 29 May 2023 09:28:15 +0300
Newsgroups gmane.comp.python.windows
Message-ID <CAMv+wg4ok-o8WGxp5HDAhF+5zu1chEA9MOKwJmOp=VbKHO7-AA@mail.gmail.com>
Hi everyone!
I've posted https://github.com/mhammond/pywin32/issues/2061 with full info
about the bug.
It uses the program listed at
https://stackoverflow.com/questions/76175244/how-to-put-formatted-text-on-clipboard-with-python-and-avoid-conflict-with-ditto

I think the critical line is this:

win32clipboard.SetClipboardData(self.GetCfHtml(), src.encode('utf-8'))

The data is obtained from stdin and is already in UTF8

_______________________________________________
python-win32 mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-win32