title: Encoding special characters in c#
body: <p>In my c# application, i receive post data in the form of xml. Within the xml i have a attribute receiving as " <code>SmÃ¥senter (Sandvika SmÃ¥senter)</code>" . Before inserting to database i need to encode it as "<code>Småsenter (Sandvika Småsenter)</code>" . I tried to use below code ,</p>
  
  <pre><code>string name = "SmÃ¥senter (Sandvika SmÃ¥senter)";
  name = HttpUtility.HtmlDecode(name);
  </code></pre>
  
  <p>Also tried <code>name = HttpUtility.HtmlEncode(name);</code></p>
  
  <p>But it is not giving expected output.
  Is any suggessions to get in expected characters.</p>
  
  <p>Regards</p>
  
  <p>Sangeetha</p>