.NET Framework cannot correctly display Chinese issues

xiaoxiao2021-03-06  64

The .NET Framework cannot correctly display Chinese issues, just create a file named web.config in the directory executed (whether this directory is virtual directory) and enter the following in the file: Web.config The problem can be resolved after the creation of the text. Tip: If you need to display traditional Chinese normally, you need to set the value of RequestenCoding to ResponseEnCodin to "BIG5".

Using the web.config file can only resolve Chinese issues on the current directory in the program and cannot resolve Chinese display issues in all directories in the host. The method of configuring the entire host Chinese display problem is to modify the host's formulation file machine.config. This file is generally in the Config in the .NET directory. Such as c: /winnt/microsoft.net/framework/v1.02914/config/machine.config. Open this file, find the following code: Requestencoding is changed to "GB2312" (Simplified Chinese) or "BIG5" (Traditional Chinese).

转载请注明原文地址:https://www.9cbs.com/read-88584.html

New Post(0)