C# 实现简体中文和繁体中文的转换

添加 Microsoft.VisualBasic引用

///


/// 转换为简体中文
///

public static string ToSChinese(string str)
{
return Strings.StrConv(str, VbStrConv.SimplifiedChinese, 0);
}

///


/// 转换为繁体中文
///

public static string ToTChinese(string str)
{
return Strings.StrConv(str, VbStrConv.TraditionalChinese, 0);
}

原文链接:https://www.cnblogs.com/wuyisky/archive/2007/12/27/1017530.html

posted @ 2021-11-30 21:42  QAQhong  阅读(275)  评论(0)    收藏  举报