title: How to convert a symbol - " † " to HTML code?
body: <p>I'm trying to write the dagger '†' symbol to a HTML page which gets converted to a PDF document, but this appears on the PDF as 'â€'</p>
  
  <p>I understand that I need to use the HTML code for this symbol, which is <code>&amp;#8224;</code>. </p>
  
  <p>I've done this successfully for the '€' but in these cases I've written the code directly into the HTML. In this case, I'm reading the symbol from an XML file. When I inspect the value of the variable that contains the symbol, it appears as '†'. </p>
  
  <p>I should note that I've tried reading the symbol &amp; the code from the XML file, as follows:</p>
  
  <pre><code>&lt;fund id="777" countryid="N0" append="&amp;#8224;" /&gt;
  </code></pre>
  
  <p>and </p>
  
  <pre><code>&lt;fund id="777" countryid="N0" append="†" /&gt;
  </code></pre>
  
  <p>but both are stored in the variable as the symbol, and when I write them to the page, both are rendered as 'â€'. Also, I've tried the following:</p>
  
  <pre><code>string code = "&amp;#8224;";
  string symbol = "†";
  string htmlEncodedCode = HttpUtility.HtmlEncode(code);
  string htmlEncodedSymbol = HttpUtility.HtmlEncode(symbol);
  
  tc.Text = fund.Name + code + " " + symbol + " " + 
      htmlEncodedCode + " " + htmlEncodedSymbol;
  </code></pre>
  
  <p>but only the first works. It appears in the document as:</p>
  
  <pre><code>FundName† â€ &amp;#8224; â€
  </code></pre>
  
  <p>Can somebody suggest how I can get this to work?</p>
  
  <p><strong>Update:</strong></p>
  
  <p>@James Curran's answer below was correct. Just for the sake of clarity, I had to change the XML to:</p>
  
  <pre><code>&lt;fund id="777" countryid="N0" append="&amp;amp;dagger;" /&gt; 
  </code></pre>
  
  <p>and in my C#: </p>
  
  <pre><code>tc.Text = fund.Name + append;
  </code></pre>