How to convert from unicode to ASCII

前端 未结 5 2118
不知归路
不知归路 2020-12-17 23:18

Is there any way to convert unicode values to ASCII?

5条回答
  •  醉酒成梦
    2020-12-18 00:08

    Well, seeing as how there's some 100,000+ unicode characters and only 128 ASCII characters, a 1-1 mapping is obviously impossible.

    You can use the Encoding.ASCII object to get the ASCII byte values from a Unicode string, though.

提交回复
热议问题