Commit a698f4ac authored by Dan Pascu's avatar Dan Pascu

Ignore cut text that cannot be encoded in latin1

parent 8f40188b
...@@ -343,7 +343,11 @@ cdef class RFBClient: ...@@ -343,7 +343,11 @@ cdef class RFBClient:
if not self.connected: if not self.connected:
return return
try:
text_latin1 = text.encode('latin1') text_latin1 = text.encode('latin1')
except UnicodeEncodeError:
return
string = text_latin1 string = text_latin1
strlen = len(text_latin1) strlen = len(text_latin1)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment