Web.Config not able to render special character

asp.net, iis, web-config

Solution

You should use the ASCII value:

<add key="FromName" value="Test&#0153;" />

If this returns as `Test&#0153;`, then you'll have to encode the result.

Problem

I have a ASP.NET Web app and here is the below entry in Web.Config ``` <add key="FromName" value="Test™"/> ``` When I try to browse the site I get the following error- Configuration file is not well-formed XML It converts the above key to the below way- ``` <add key="FromName" value="Test�"/> ``` In IIS I have set the UTF-8 format. I have been trying to look for an answer for a quite long time. Does somebody have any idea on the same?

Original source