A weird thing in c# Encoding

后端 未结 6 1802
北海茫月
北海茫月 2020-12-11 21:52

I convert a byte array to a string , and I convert this string to byte array. these two byte arrays are different.

6条回答
  •  执笔经年
    2020-12-11 22:31

    188 is out of range for ASCII. Characters that are not in the corresponding character set are transposed to '?' by design (would you prefer transposing to "1/4"?)

提交回复
热议问题