Decode Utf8 base 64 String - CSharp System

CSharp examples for System:String Base64

Description

Decode Utf8 base 64 String

Demo Code


using System.Text;
using System;/*from  w w  w.  ja va 2s  .c  om*/

public class Main{
        public static string DecodeUtf8(string base64Str)
        {
            byte[] strUtf8 = Convert.FromBase64String(base64Str);
            return Encoding.UTF8.GetString(strUtf8);
        }
}

Related Tutorials