I'm trying to send non-printable ASCII characters (codes 128 - 255) through telnet to a Ruby app using Socket objects to read data in.
When I try to send \x80
through telnet, I expect Ruby to receive a string of 3 bytes: 128 13 10
.
I actually receive a string of 6 bytes: 92 120 56 48 13 10
.
Do I need to change something about how telnet is sending the information, or how the Ruby socket is accepting it? I've read through all the telnet jargon I can comprehend. A point in the right direction would be very much appreciated.