inicio mail me! sindicaci;ón

In.Net FW cannot show Chinese issue correctly

.Net Framework cannot show the issue of Chinese correctly, in wanting the list that carries out in the program only (no matter whether this catalog is fictitious catalog) found to the name is the file of Web.config and input the following content in the file:

It is quotative content below:
Web.config
<configuration>
<location>
<system.web>
<globalization
RequestEncoding= “gb2312 “
ResponseEncoding= “gb2312 “
/ >
</system.web>
</location>
</configuration>

After the file establishs a success, the issue that simplified Chinese shows can be solved.

Clew: If need to show traditional Chinese normally, need to all set the value of RequestEncoding and ResponseEncodin for “big5 “

Use Web.config file can settle a program only the Chinese problem on present list, the Chinese of all catalog in insoluble lead plane shows an issue.

Configuring Chinese of whole lead plane to demonstrate the method of the problem is, of modification lead plane make up file Machine.config. This file is commonly in the Config of.Net catalog. Be like C:\Winnt\Microsoft.Net\Framework\v1.02914\config\machine.config

Open this file, find the following code:

It is quotative content below:
<globalization
RequestEncoding= “utf-8 “
ResponseEncoding= “utf-8 “
/>

simplified Chinese of its RequestEncoding and “gb2312″ (of ResponseEncoding attribute instead) or “big5″ (traditional Chinese) can.

Bookmark:Digg Del.icio.us Reddit

Leave a Comment