From Utf8 Byte Array to String - CSharp System

CSharp examples for System:Byte

Description

From Utf8 Byte Array to String

Demo Code


using System.Text;
using System;//from  ww w .ja v a2  s  .c  om

public class Main{
        public static string FromUtf8ByteArray(
            byte[] bytes)
        {
            return Encoding.UTF8.GetString(bytes, 0, bytes.Length);
        }
}

Related Tutorials