Hi All,
I am receiving a flat file and need to convert it from non unicode to unicode based on some conditions.
Below is the code for conversion , in the pipeline but its not working. Any suggestions ?
MemoryStream mem = new MemoryStream();
byte[] outBytes2 = System.Text.Encoding.GetEncoding("UTF-8").GetBytes(content);
MemoryStream memStream2 = new MemoryStream();
memStream2.Write(outBytes2, 0, outBytes2.Length);
memStream2.Position = 0;
pInMsg.BodyPart.Data = memStream2;
return pInMsg