//因为不喜欢看一大长串的代码,所以就只好写个函数来调用
#region 简繁体转换
/// <summary>
/// 字符串简体转繁体 1033参数是防止转换后中文乱码
/// </summary>
/// <param name="strSimple"></param>
/// <returns></returns>
public static string ToFTZ(string strSimple)
{
string strTraditional = Microsoft.VisualBasic.Strings.StrConv(strSimple, Microsoft.VisualBasic.VbStrConv.TraditionalChinese, 1033);
return strTraditional;
}
/// <summary>
/// 字符串繁体转简体
/// </summary>
/// <param name="strTraditional"></param>
/// <returns></returns>
public static string ToJTZ(string strTraditional)
{
string strSimple = Microsoft.VisualBasic.Strings.StrConv(strTraditional, VbStrConv.SimplifiedChinese, 1033);
return strSimple;
}
#endregion
07-18
3182
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)