将繁体字转换为简体

static void Main(string[] args)
{
    StreamReader txtread = new StreamReader(@"E:/data.txt", System.Text.Encoding.Default);
    String txt = txtread.ReadToEnd();
    txt = Microsoft.VisualBasic.Strings.StrConv(txt, Microsoft.VisualBasic.VbStrConv.SimplifiedChinese, 2052);
    Console.WriteLine(txt);

你可能感兴趣的:(将繁体字转换为简体)