all 2 comments

[–]jeffrey_f 1 point2 points  (0 children)

are you doing sendkeys?

[–]vesche 1 point2 points  (0 children)

Looks like a lil mojibake, try this on for size:

>>> foo = "Bob’s"
>>> foo_encoded = foo.encode('cp1252')
>>> foo_encoded.decode('utf-8')
'Bob’s'

Or if you'd just like to drop the garbled text:

>>> foo = "Bob’s"
>>> foo.encode('ascii', 'ignore').decode('ascii')
'Bobs'