c# - One aspx page to have utf-8 encoding -
what should change 1 aspx page have utf-8 encoding?
my web.config has following code:
<system.web>   <globalization      requestencoding="utf-8"      responseencoding="utf-8"/> </system.web>   tried this:
meta http-equiv="content-type" content="text/html; charset=utf-8"    doesn't work.
try this;
<configuration>  <system.web>   <globalization     fileencoding="utf-8"      requestencoding="utf-8"      responseencoding="utf-8"     culture="en-us"     uiculture="de-de"    />  </system.web> </configuration>   to set encoding individual page, set requestencoding , responseencoding attributes of @ page directive:
<%@ page requestencoding="utf-8" responseencoding="utf-8" %>   or can use location this:
<location path="home.aspx">     <system.web>         <globalization requestencoding="utf-8" responseencoding="utf-8" />     </system.web> </location>   read more: how to: select encoding asp.net web page globalization.
Comments
Post a Comment