literal control showing character encoding
<p>I have a problem displaying html entities in a literal control in asp.net.</p>

<p>Before I pass my content to a literal control I encode the characters e.g. <code>£</code> to <code>&amp;pound;</code> but when it gets displayed in the page it displays <code>&amp;pound;</code> instead of <code>£</code>. I checked the source and it is not encoding the html entity e.g. <code>&amp;amppound;</code> but displaying it as plain text.</p>

<p>I have tried removing the <code>htmlencode</code> at the backend and adding <code>mode="encode"</code> on the literal control but I get the same results.</p>

<p>Does anyone know why this happens?</p>

<p>I know I can use a label control but surely theres a better way?  I do not like the html format literal control gives.</p>
