.Net 8-bit Encoding

后端 未结 5 2107
春和景丽
春和景丽 2020-12-19 13:14

I\'m working on serial port, transmitting and receiving data to some hardware at 8bit data. I would like to store it as string to facilitate comparison, and preset data are

5条回答
  •  轮回少年
    2020-12-19 13:32

    Why not just use an array of bytes instead? It would have none of the encoding problems you're likely to suffer with the text approach.

提交回复
热议问题