I'm having an issue when using spawnu (UTF-8) from the Pexpect module for Python 3 during a SSH session when the remote machine responds with the following characters in the output:
ÿÿÿÿ
Here's the error the I received:
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 273: invalid start byte
When I throw an interact()
in before I receive the input, everything comes through okay, which is why I believe the issue is with spawnu.
I'm looking for workarounds or alternative methods.