One aspx page to have utf-8 encoding

后端 未结 2 1709
旧时难觅i
旧时难觅i 2021-01-03 03:54

What should I do to change one aspx page to have utf-8 encoding?

my web.config has the following code:


  

        
2条回答
  •  盖世英雄少女心
    2021-01-03 04:29

    Try to insert

    Response.ContentEncoding = System.Text.Encoding.UTF8;
    

    In your Page_Load if you want to do it dynamically.

提交回复
热议问题