I seem to be having problems with my string conversions in C#. My application has received a byte array consisting of an ASCII string (one byte per character). Unfortunately
byte[] exampleByteArray = new byte[] { 0x00, 0x52, 0x50, 0x4D, 0x20, 0x3D, 0x20, 0x32, 0x35, 0x35, 0x2C, 0x36, 0x30, 0x0A, 0x00 }; string myString = System.Text.ASCIIEncoding.Default.GetString(exampleByteArray);
Result: myString = "\0RPM = 255,60\n\0"
myString = "\0RPM = 255,60\n\0"