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# 繁体,简体 互转
最新推荐文章于 2024-09-24 16:16:39 发布