context.Response.Charset = Encoding.UTF8.ToString();

前端 未结 3 562
无人共我
无人共我 2021-01-02 22:40

I had used this in my code to set the Charset but IE did not like it. Any reason why?

context.Response.Charset = Encoding.UTF8.ToString();

I ended up havi

3条回答
  •  Happy的楠姐
    2021-01-02 23:29

    Context.Response.Charset = Encoding.UTF8.WebName;
    

    Gets the name registered with the Internet Assigned Numbers Authority (IANA) for the current encoding.

提交回复
热议问题