简繁体转换

 

 

 

using Microsoft.VisualBasic;
这个需要添加引用

C# code
  
<!-- Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --> /// <summary> /// 将字符串转换为简体中文 /// </summary> public static string ToSimplifiedChinese( string s) { return Microsoft.VisualBasic.Strings.StrConv(s, VbStrConv.SimplifiedChinese, 0 ); } /// <summary> /// 将字符串转换为繁体中文 /// </summary> public static string ToTraditionalChinese( string s) { return Microsoft.VisualBasic.Strings.StrConv(s, VbStrConv.TraditionalChinese, 0 ); }

你可能感兴趣的:(C++,c,Microsoft,C#)