How to decode UTF8 value from data.?

I have encoded message at receive pipeline 

byte[] msgBodyContentBytesConverted = Encoding.Convert(Encoding.Unicode, Encoding.UTF8, msgBodyContentBytes);

But when i m tried to decode text using below listed code

   1. byte[] msgBodyContentBytes = Encoding.UTF8.GetBytes(text);
           string returntext = System.Text.Encoding.UTF8.GetString(msgBodyContentBytes);
           return returntext;


There is no change in the value

The encoded value is "" but when i am trying to decode .. the output is same.

Can any one suggest me where i m missing




  • Edited by Singh AK Wednesday, February 18, 2015 2:21 AM
February 18th, 2015 4:53am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics