代码如下
[object Object]Code string src = "中文里有English能否正常显示?"; byte[] dftBytes = Encoding.Default.GetBytes(src); byte[] ascBytes = Encoding.Convert(Encoding.Default, Encoding.ASCII, dftBytes); string dst = Encoding.ASCII.GetString(ascBytes); Console.WriteLine(dst);
????English???????
喵喵时光机
12345678_0001