I am trying print data from serial port to a text file, but text file won\'t open and gives the error invalid byte sequence in conversion input.
invalid byte sequence in conversion input.
here is the