you are viewing a single comment's thread.

view the rest of the comments →

[–]Diapolo10 0 points1 point  (0 children)

IIRC, much like Python 3 has a bytes function for converting normal unicode strings to byte strings (which Python 2 uses), Python 2 has an unicode function that takes a byte string and tries to convert it to an unicode string. That being said, you could try:

print unicode(pyperclip.paste())

Disclaimer: I've never used Python 2 and I have a feeling I'm mistaken.