title: Strange characters output on asp.net mvc page
body: <p>Sometimes (randomly) my asp.net mvc application outputs page where single character is being replaced with weird question marks, as shown on image</p>
  
  <p><img src="https://i.stack.imgur.com/lPipO.png" alt="enter image description here"></p>
  
  <p>This behavior is constant until data changes, and it does not disappear with page refresh. The whole page is in Georgian unicode. I am using asp.net mvc 3 with visual studio 2010 and iis express. This is also observed on published site to IIS 7.5. I have seen similar issues in asp.net webforms application too.</p>
  
  <p>I have observed this behavior not only on db-provided data, but simple anchors, generated with html helper</p>
  
  <pre><code>TagBuilder addAnchor = new TagBuilder("a");
  addAnchor.AddCssClass("add-item");
  addAnchor.MergeAttribute("href", "#");
  addAnchor.SetInnerText(SharedResources.Add); //resource item contains string დამატება
  </code></pre>
  
  <p>which output anchor "დამატ���ბა"</p>
  
  <p>And this is not issue with page rendering on browser-side, as raw response already contains these symbols.</p>
  
  <p><strong>Update:</strong></p>
  
  <p>As it seems, disabling buffer output by setting <code>Response.BufferOutput = false;</code> removes weird characters from page. But I use <a href="http://getcassette.net/" rel="nofollow noreferrer">Cassette</a> for referencing bundles, and it cannot work with disabled buffer output - no scipts or stylesheets get referenced on page.</p>
  
  <p>Has anyone of you had a similar problem? This is actually critical for me, as currently it affects data where that single character being damaged is the correct answer information of a multi-select test question.</p>