zoukankan      html  css  js  c++  java
  • C#实现简体中文和繁体中文的转换

    C#实现简体中文和繁体中文的转换
    2008年01月24日 星期四 17:03

    using Microsoft.VisualBasic;
    添加 Microsoft.VisualBasic引用
    ///   <summary>
            ///   转换为简体中文
            ///   </summary>
            public static string ToSChinese(string str)
            {
                return Strings.StrConv(str, VbStrConv.SimplifiedChinese, 0);
            }

            ///   <summary>
            ///   转换为繁体中文
            ///   </summary>
            public static string ToTChinese(string str)
            {
                return Strings.StrConv(str, VbStrConv.TraditionalChinese, 0);
            }

    转自:http://hi.baidu.com/zzticzh/blog/item/f6ddfd243e3659378644f97d.html


    作者:SCPlatform
    Email:SCPlatform@outlook.com
    本文旨在学习、交流使用,任何对文章内容的出版、印刷,对文章中提到的技术的商业使用时,请注意可能存在的法律风险。

  • 相关阅读:
    python字符串字典列表互转
    列表迭代器 ListIterator
    并发修改异常处理
    二月天 案例
    Calendar类
    Date类
    冒泡排序
    内部类
    python第三天
    Layui——checkbox使用
  • 原文地址:https://www.cnblogs.com/SCPlatform/p/1194896.html
Copyright © 2011-2022 走看看