c# 简体 繁体 转换

 public static string Traditional2Simplified(string str)
        { //繁体转简体 
            string s = (Microsoft.VisualBasic.Strings.StrConv(str, Microsoft.VisualBasic.VbStrConv.SimplifiedChinese, 0x0804));
            return s;
        }
        public static string Simplified2Traditional(string str)
        { //简体转繁体

            return (Microsoft.VisualBasic.Strings.StrConv(str as String, Microsoft.VisualBasic.VbStrConv.TraditionalChinese, 0x0804));

        }

posted @ 2010-12-20 10:01  潘聪辉  阅读(331)  评论(0编辑  收藏  举报