title: Unicode Text in ASP.NET
body: <p>I have an input field on my html page where the user can enter Unicode text, for example i enter : ыва ыва ыва ыва ыва ыв</p>
  
  <p>When the form is posted, i check the value posted and it is posted as : Ñ‹Ð²Ð° Ñ‹Ð²Ð° Ñ‹Ð²Ð° Ñ‹Ð²Ð° </p>
  
  <p>The content type of the page is set as :Content-Type: text/html; charset=utf-8</p>
  
  <p>When i display the posted value on the webpage, it shows as Ñ‹Ð²Ð° Ñ‹Ð²Ð° Ñ‹Ð²Ð° Ñ‹Ð²Ð° instead of ыва ыва ыва ыва ыва ыв. </p>
  
  <p>How can i fix this to display properly? Do i need to do convert the encoding ? I believe c# strings by default are utf8, and my html page charset is also set as utf-8 - so not sure what's going on.</p>
  
  <p><strong>Update:</strong>
  Here's my ASP Page :</p>
  
  <pre><code>    &lt;%@ Page Language="C#" AutoEventWireup="true" CodeBehind="utf8.aspx.cs" Inherits="enterprise10._garbage.utf8"
      ValidateRequest="false" Theme="" EnableTheming="false" ResponseEncoding="utf-8" %&gt;
  
  &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
  &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
  &lt;head id="Head1" runat="server"&gt;    
      &lt;title&gt;&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;form action="" method="post" runat="server"&gt;
      &lt;asp:TextBox ID="UserInputText" runat="server"&gt;&lt;/asp:TextBox&gt;
      &lt;br /&gt;
      &lt;asp:Label ID="UserInputLabel" runat="server" Text="Label"&gt;&lt;/asp:Label&gt;
      &lt;br /&gt;
  
         &lt;input type="submit" /&gt;
  
      &lt;hr /&gt;
  
  &lt;b&gt;    Sample Text displays correctly on the page : &lt;/b&gt;&lt;br /&gt;
      ыва ыва ыва ыва ыва ыв  
  
  
  
      &lt;/form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p><strong>Code Behind:</strong></p>
  
  <pre><code>protected void Page_Load(object sender, EventArgs e)
  {
              UserInputLabel.Text = UserInputText.Text;
  }
  </code></pre>
  
  <p><strong>Screen Output (IE9) Before form post:</strong></p>
  
  <p><img src="https://i.stack.imgur.com/VdNE1.jpg" alt="enter image description here"></p>
  
  <p><strong>Screen Out after form post</strong></p>
  
  <p><img src="https://i.stack.imgur.com/x2A8h.jpg" alt="enter image description here"></p>