title: Whats going on with this byte array?
body: <p>I have a byte array: 
  <code>00 01 00 00 00 12 81 00 00 01 00 C8 00 00 00 00 00 08 5C 9F 4F A5 09 45 D4 CE</code></p>
  
  <p>It is read via <code>StreamReader</code> using <code>UTF8 encoding</code></p>
  
  <pre><code>// Note I can't change this code, to many component dependent on it.
  using (StreamReader streamReader = 
      new StreamReader(responseStream, Encoding.UTF8, false))
  {
      string streamData = streamReader.ReadToEnd();
      if (requestData.Callback != null)
      {
          requestData.Callback(response, streamData);
      }
  }
  </code></pre>
  
  <p>When that function runs I get the following returned to me (i converted to a byte array)</p>
  
  <p><code>00 01 00 00 00 12 EF BF BD 00 00 01 00 EF BF BD 00 00 00 00 00 08 5C EF BF BD 4F EF BF BD 09 45 EF BF BD</code></p>
  
  <p>Somehow I need to take whats returned to me and get it back to the right encoding and the right byte array, but I've tried alot.</p>
  
  <p>Please be aware, I'm working with WP7 limited API.</p>
  
  <p>Hopefully you guys can help.</p>
  
  <p>Thanks!</p>
  
  <p>Update for help...</p>
  
  <p>if I do the following code, it's almost right, only thing that is wrong is the 5th to last byte gets split out.</p>
  
  <pre><code>byte[] writeBuf1 = System.Text.Encoding.UTF8.GetBytes(data);
                      string buf1string = System.Text.Encoding.BigEndianUnicode.GetString(writeBuf1, 0, writeBuf1.Length);
                      byte[] writeBuf = System.Text.Encoding.BigEndianUnicode.GetBytes(buf1string);
  </code></pre>