Garbled code when solving free space

  

We have to put the webpage on the Internet for a lot of time, but there are still a lot of free space to use, whether it is domestic or foreign, but sometimes we will find that the webpage that was put on the screen actually appeared. The garbled, how to solve this?

In the first line of the data extraction page, replace the code with the following code:

1. If it is an HTML file (.htm.html): Br>

Add

2. If it is a PHP/cgi file (.php .php3 .php4):

Add the first line of each PHP file

3. If it is an asp file (.asp.jsp):

The following is a good news, talk about the asp source file on the foreign server Chinese problem solution:

1. First, put Your asp source file is fully tested in IIS, calling each function, confirming that it is fully usable, displaying Chinese correctly, and opening the *.mdb database file to see if the Chinese display is normal. After all passes, make a backup file and you can perform the second step.

2. If you don't understand asp at all, the easiest way is to:

Open all *.asp files and insert them in the first line,

Exception Situation:

1. If the first line is at the beginning,

then change the first line to:

2, if the first line starts with or, then Do not join.

3. After the second step is completed, use IIS to test each function, such as displaying \\0\\conn.asp line 1, which is an error message, meaning: conn.asp source file If there is a line wrong, then delete it. Some exceptions are wrong, please go to http://search.microsoft.com/default.asp ;; here, enter “error information” query, all functional tests are feasible After that, you can upload it to a foreign server and test it.

4. The method is still: call each function, all can be used correctly and can display Chinese, then "deliver" ” *.mdb file (very important), open, confirm that Chinese can be displayed correctly And you're done.

In addition, the Chinese display method of ACESS2000 on foreign servers does not need to convert the database ACESS2000, just add

in the first line of ASP. How to solve the problem of displaying problems in foreign space Chinese

Non-program generated text can be displayed. But the text generated by the program can only be displayed in E text. Chinese is all the number, which is caused by garbled database.

Method one:

Open the database using Microsoft Access 2000 and select Tools menu > Database Utilities > Convert Database > to the earlier Access database version. OK!

Method 2:

Later, I subscribed to Microsoft's newsgroup and found a discussion about this

question in Microsoft's newsgroup dotnet.framework.aspplus.general The article, the method is added to the beginning of each page, a bit similar to the

in jsp. Hurry and test it, and sure enough OK!!!

Examples are as follows:

Method three:

Add a config.web file to the

web directory,

Create a file config.web, the content is as follows, placed in the WEB directory

requestencoding="utf-8"

responseencoding="utf-8"

/>

If the above problem occurs, it is Easy to solve, as long as you can use these methods, basically solve the problem with code, I believe that it is not difficult for people who want to put on the page, I hope to help everyone.

Copyright © Windows knowledge All Rights Reserved