From 20d4023e58a7ab206cf736377164ad1061c21754 Mon Sep 17 00:00:00 2001 From: =Manuel Cortez Date: Tue, 18 Jul 2017 19:52:42 -0500 Subject: [PATCH] Text copied to clipboard will be encoded as unicode. Fixes #150 --- doc/changelog.md | 4 ++++ src/output.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/doc/changelog.md b/doc/changelog.md index ee5921bb..aa74d941 100644 --- a/doc/changelog.md +++ b/doc/changelog.md @@ -2,6 +2,10 @@ ## changes in this version +* Fixed incorrect unicode handling when copying tweet to clipboard. ([#150](https://github.com/manuelcortez/TWBlue/issues/150)) + +## changes in version 0.91 + * TWBlue will show an error when trying to open a timeline for a suspended user. ([#128](https://github.com/manuelcortez/TWBlue/issues/128)) * Removed TwUp as service as it no longer exists. ([#112](https://github.com/manuelcortez/TWBlue/issues/112)) * Release audio files after uploading them. ([#130](https://github.com/manuelcortez/TWBlue/issues/130)) diff --git a/src/output.py b/src/output.py index c655be83..e3809bc4 100644 --- a/src/output.py +++ b/src/output.py @@ -29,5 +29,5 @@ def copy(text): #Copies text to the clipboard. win32clipboard.OpenClipboard() win32clipboard.EmptyClipboard() - win32clipboard.SetClipboardText(text) + win32clipboard.SetClipboardText(text, win32clipboard.CF_UNICODETEXT) win32clipboard.CloseClipboard()