CSharp examples for System.Xml:XML String
To convert a Byte Array of Unicode values (UTF-8 encoded) to a complete String.
using System.Xml.Serialization; using System.Xml; using System.Web; using System.Text; using System.Linq; using System.IO;/* w w w. j ava2s. c o m*/ using System.Collections.Generic; using System; public class Main{ /// <summary> /// To convert a Byte Array of Unicode values (UTF-8 encoded) to a complete String. /// </summary> /// <param name="characters">Unicode Byte Array to be converted to String</param> /// <returns>String converted from Unicode Byte Array</returns> private static String UTF8ByteArrayToString(Byte[] characters) { UTF8Encoding encoding = new UTF8Encoding(); String constructedString = encoding.GetString(characters); return (constructedString); } }