亿博团队-亿博团队 计划·首页(欢迎您)
日期:2020/1/18  发布人:润宇亿博团队  浏览量:11
 

 /// <summary>
    /// 转为utf-8
    /// </summary>
    /// <param name="str">要转换的字符串</param>
    /// <returns>utf-8字符串</returns>
    private static string Toutf-8(this string str)
    {
        byte[] buffer = Encoding.GetEncoding(936).GetBytes(str);
        string utf-8 = Encoding.GetEncoding(936).GetString(buffer);
        return utf-8;
    }