title: integer to utf8 string not working c#
body: <p>I'm converting UTF8 string to integer, and the other way around. 
  If i enter 卐 as a string, it converts to 21328.
  But when I try to convert 21328 back to string I get "PS".</p>
  
  <p>I tried:</p>
  
  <pre><code>  int dec = Convert.ToInt32(decimal1.Text, 10);
  
  byte[] bajti = new byte[4];
                  bajti[0] = (byte)(dec &gt;&gt; 24);
                  bajti[1] = (byte)(dec &gt;&gt; 16);
                  bajti[2] = (byte)(dec &gt;&gt; 8);
                  bajti[3] = (byte)dec;
  
   znak1.Text = Encoding.UTF8.GetString(bajti);
  </code></pre>
  
  <p>I have also tried converting using BitConverter and got same result.
  I have thought, it could be a problem with TextBox, and I tried to wrote it down in notepad, but got same result...</p>