Use encode with replace to tolerate some breakage.
This commit is contained in:
parent
d02caa5124
commit
d97b32f250
1 changed files with 1 additions and 2 deletions
3
cup.py
3
cup.py
|
|
@ -1,6 +1,5 @@
|
||||||
import pyperclip
|
import pyperclip
|
||||||
|
|
||||||
from voussoirkit import pipeable
|
from voussoirkit import pipeable
|
||||||
|
|
||||||
text = pipeable.input('!i', split_lines=False)
|
text = pipeable.input('!i', split_lines=False)
|
||||||
pyperclip.copy(text)
|
pyperclip.copy(text.encode('utf-8', 'replace').decode())
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue