Php + wml computer browser display all garbled solutions
Source: Internet
Author: User
Php + wml computer browser displays all garbled characters & lt ;? Php & nbsp; // custom file & nbsp; require (& quot; common/Inc/conn. inc. php & quot;); conndb (); $ root = & quot; D: php + wml: all garbled characters are displayed in the computer browser.
// Custom file
Require ("common/Inc/conn. inc. php ");
Conndb ();
$ Root = "D:/www/htdocs /";
Require ("function. php ");
$ Title = "mobile edition of Northeast Normal University employment alliance ";
// Output the wml header file
// Header ("Content-type: text/vnd. wap. wml ");
// Header ("Cache-Control: no-cache, must-revalidate ");
// Header ("Pragma: no-cache ");
Echo (" ");
Echo ("");
Echo (" ");
?>
Website in wap.dsjy20.net
For help !! How can it be garbled on a computer browser?
------ Solution --------------------
Check if webpage code is UTF-8
------ Solution --------------------
After checking, it is the cause of file encoding. after being opened with editplus, it can be saved as UTF-8 format.
------ Solution --------------------
Something is missing,
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