CSharp examples for System:String Unicode
Converts the String to UTF8 Byte array and is used in Deserialization
using System.Text; using System.Linq; using System.Collections.Generic; using System;//from w w w. ja va2s . c o m public class Main{ /// <summary> /// Converts the String to UTF8 Byte array and is used in De serialization /// </summary> /// <param name="pXmlString"></param> /// <returns></returns> static public Byte[] StringToUTF8ByteArray(String pXmlString) { UTF8Encoding encoding = new UTF8Encoding(); Byte[] byteArray = encoding.GetBytes(pXmlString); return byteArray; } }