How can I convert extended ascii to a System.String?

后端 未结 4 1564
無奈伤痛
無奈伤痛 2020-12-03 07:04

For example: \"½\" or ASCII DEC 189. When I read the bytes from a text file the byte[] contains the valid value, in this case 189.

Converting to Unicode results in

4条回答
  •  温柔的废话
    2020-12-03 07:49

    System.String[] can not store characters with ASCII > 127 if you are trying to work on any extended ASCII characters such as œ ¢ ½ ¾here is the method to convert it into their binary and decimal equivalent

提交回复
热议问题