Chinese encoding of ASP. NET 2.0 pages-downmoon

Source: Internet
Author: User

The Web deployment project provided by Microsoft was used to generate a web project with the generator a few days ago.

The generated file is correct when the original project is generated. However, when you deploy the tool, it is found that all the Chinese characters on the aspx and ascx pages are garbled, while the files output by the CS file are normal.
Add the following line to the ASPX page.

<
Meta
HTTP-equiv
= "Content-Type"
Content
= "Text/html; charset = gb2312"
>


Still cannot solve the problem.
Add in <page>


<
Responseencoding
= "Gb2312"
>


Problem persists
So save aspx and ascx files as -- encoding save -- Unicode (UFT-8 with signature) -- code page 6500

OK!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.