c#打开日文文件乱码问题
乱码示例:儊僜僢僪幚峴
解决方法:
var dstEncoding= Encoding.GetEncoding("shift_jis"); var srcEncoding= Encoding.GetEncoding("gbk"); Console.WriteLine(dstEncoding.GetString(srcEncoding.GetBytes(tetx)));
咋还删不掉呢
乱码示例:儊僜僢僪幚峴
解决方法:
var dstEncoding= Encoding.GetEncoding("shift_jis"); var srcEncoding= Encoding.GetEncoding("gbk"); Console.WriteLine(dstEncoding.GetString(srcEncoding.GetBytes(tetx)));
咋还删不掉呢