.Net 8-bit Encoding

后端 未结 5 2115
春和景丽
春和景丽 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:44

    Use the Hebrew codepage for Windows-1255. Its 8 bit.
    Encoding enc = Encoding.GetEncoding("windows-1255");

    I missunderstod you when you wrote "1-255", thought you where refereing to characters in codepage 1255.

提交回复
热议问题