Convert Byte[] to UTF8 Encoded String


Ah! Just forgot to mention how to convert a Byte[] to UTF8 Encoded string. Here we go –
string str = System.Text.Encoding.UTF8.GetString(bytes);

Advertisements