title: ASP.NET MVC3 - Display accented string in TextBoxFor
body: <p>I'm working on an ASP.NET MVC3 project.</p>
  
  <p>In a basic update page, I'm trying to display data recorded in the DB into some <code>TextBoxFor</code>. However, the data can contain some special characters, like quote <code>'</code> or accented letters like <code>é</code></p>
  
  <p>When I write</p>
  
  <pre><code>@Html.TextBoxFor(m =&gt; m.MyProperty)
  </code></pre>
  
  <p>The displayed text looks like <code>L&amp;#39;av&amp;#233;e</code> instead of <code>L'avée</code>.</p>
  
  <p>I've seen <a href="https://stackoverflow.com/questions/8402230/mvc3-textboxfor-with-encoded-text">this question</a> but the answer doesn't change anything for me.  </p>
  
  <p>Is there a way to display my string <strong>PROPERLY</strong> with accented letters and quotes in a <code>TextBoxFor</code> ?</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>This field is in a partial view containing only this field :</p>
  
  <pre><code>@model MyApp.Models.SomeModel
  
  &lt;div class="form-group"&gt;
      @Html.LabelFor(m =&gt; m.MyModel.Submodel.MyProperty)
      @Html.TextBoxFor(m =&gt; m.MyModel.Submodel.MyProperty, new { @class = "form-control", @id = "txtMyProperty" })*@
  &lt;/div&gt;
  </code></pre>
  
  <p>Here, <code>SomeModel</code> is correctly displayed (believe me). </p>
  
  <ul>
  <li><code>SomeModel</code> has a <code>MyModel</code> property. </li>
  <li><code>MyModel</code> has a <code>SomeModel</code> property</li>
  <li><code>SomeModel</code> has a <code>MyField</code> field.</li>
  </ul>
  
  <p>Everything is correctly filled from DB (believe me, it has been tested and re-tested).
  However, I can't correctly display <code>MyField</code> if it has special characters. It is displayed, but with HTML reprensentation like <code>&amp;#39;</code></p>