none
Convert utf-16 xml to utf-8

    Question

  • Hello

    I have an xml in utf-16 format. I have to convert it to utf-8.

    i am using this code but at the end its giving result in utf-16

        strXML1-- Converted my xml to string.

               var utf8String = Encoding.UTF8.GetBytes(strXML1);
                string utf8str = BitConverter.ToString(utf8String);
                string final = Encoding.UTF8.GetString(utf8String);

    can anyone help me?
    Thanks

    Tuesday, February 12, 2013 2:38 PM

Answers

All replies