ASP. net is flexible, thanks to the text file configuration method. in addition, the method of using page identifiers should be extended from ASP. when writing ASP + programs, I encountered a Chinese display problem. After running the program, I found that all the Chinese characters read by ASP + from the database were changed ?????, Solution: Method 1: Set the globalization segment in config. Web <Configuration> <Globalization Requestencoding = "UTF-8" Responseencoding = "UTF-8" /> </Configuration> It can be UTF-8, gb2312, and so on. Method 2: Later, I subscribed to Microsoft's newsgroup and found it discussed in Microsoft's newsgroup DOTNET. Framework. aspplus. General. To add <% @ codePage = "936" %> to the beginning of each page. <% @ Page contenttype = "text/html; charset = gb2312" %> Hurry up and test it. OK !!! The example is shown below: <% @ CodePage = "936" %> <% @ Import namespace = "system. Data" %> <% @ Import namespace = "system. Data. Ado" %> <% @ Import namespace = "system. Globalization" %> <HTML> <Head> <Meta http-equiv = "Content-Type" content = "text/html; charset = gb2312"> Generally, after opening the interface with dereamweaver with vs. net2003, the Chinese characters in the interface become garbled. It took several minutes to finally find a solution.Add the code in Web. config. . <Globalization Requestencoding = "gb2312" Responseencoding = "gb2312" Fileencoding = "gb2312" /> Or <Meta http-equiv = "Content-Type" content = "text/html; charset = gb2312"> Garbled characters after release To facilitate the release of Visual Studio 2005 as a single DLL, Microsoft released a Visual Studio 2005 plug-in, Visual Studio 2005 web deployment projects. In different Microsoft documents, this plug-in provides two, they are: 1. (The size is 905 K) Http://download.microsoft.com/download/c/c/ B /ccb4877f-55f7-4478-8f16-e41886607a0e/webdeploymentsetup. MSI 2: (size: 919 K) Http://download.microsoft.com/download/9/4/9/9496adc4-574e-4043-bb70-bc841e27f13c/webdeploymentsetup. MSI When you give a link, the compiled file, if aspx contains Chinese characters, the page may be displayed as garbled characters. Therefore, please pay attention to the version. Both files are provided by Microsoft. The original article is as follows: Http://msdn.microsoft.com/library/default.asp? Url =/library/en-US/dnaspp/html/web_deployment_projects.asp Http://msdn2.microsoft.com/en-US/asp.net/aa337919.aspx |