MaiDeveloper

#Tutorial#ASP.NET

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>


Mike Mai
Mike Mai   Brooklyn, New York
I am a full-stack web developer. I love to learn cutting-edge technology and solve problems. I also like photography and graphic designs.