a12*_*773 0 c# character-encoding
当我打开一个文件时,它包含这样的内容:
It's that
Run Code Online (Sandbox Code Playgroud)
这是什么以及如何将其转换为ASCII?
这是HTML编码,使用WebUtility.HtmlDecode(在System.Net命名空间中):
string encoded = "It's that";
string decoded = System.Net.WebUtility.HtmlDecode(s);
Run Code Online (Sandbox Code Playgroud)