From d97b32f250d39a6b4d11b0d52b7f0bb21dfef614 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Sun, 23 Nov 2025 14:46:52 -0800 Subject: [PATCH] Use encode with replace to tolerate some breakage. --- cup.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cup.py b/cup.py index ae72b1c..bce5c5b 100644 --- a/cup.py +++ b/cup.py @@ -1,6 +1,5 @@ import pyperclip from voussoirkit import pipeable - text = pipeable.input('!i', split_lines=False) -pyperclip.copy(text) +pyperclip.copy(text.encode('utf-8', 'replace').decode())