i3-py icon indicating copy to clipboard operation
i3-py copied to clipboard

If payload contains wrong utf-8, fallback to latin-1 encoding

Open shdwp opened this issue 11 years ago • 0 comments

If there is wrong utf-8 in payload (for example - I have it sometimes in window titles) library raises exception UnicodeDecodeError. Commit handles the exception and decode string in old latin-1 way, so even wrong utf shows in a wierd way, but, at least, programs based on library works.

shdwp avatar May 19 '14 15:05 shdwp