using Microsoft.VisualBasic;
public static string Traditional2Simplified(string str)
{ //繁体转简体
return (Microsoft.VisualBasic.Strings.StrConv(str, Microsoft.VisualBasic.VbStrConv.SimplifiedChinese, 0));
}
public static string Simplified2Traditional(string str)
{ //简体转繁体
return (Microsoft.VisualBasic.Strings.StrConv (str as String, Microsoft.VisualBasic.VbStrConv.TraditionalChinese, 0));
}
C# 繁体,简体 互转
最新推荐文章于 2018-10-18 15:25:10 发布