How to set website's default encoding in IIS? How to fix a page that can't display foreign language like Chinese?
Add the <meta charset="utf-8" />
tag inside the head
tag of the web page. Also add the following setting inside the <configuration><system.web>
tag in the web.config
file.
<globalization requestEncoding="utf-8" responseEncoding="utf-8" fileEncoding="utf-8" />
It would look something like this.
<configuration>
<system.web>
<globalization requestEncoding="utf-8" responseEncoding="utf-8" fileEncoding="utf-8" />
</system.web>
</configuration>