Strange question php output blank _php tutorial

Source: Internet
Author: User
Today, download a code back from the Internet debugging, the beginning of the code error, after a turn debugging, the code finally no problem.

But IE display blank, view the source code, all output, but IE is blank, I faint.

Again to turn over, ask a colleague, the code is no problem.

Inadvertently, the file saved the last discovery, this file is UTF-8 encoded, finally found the problem.

The code defines:

But the file is encoded as UTF-8, which results in a display error.

Change the file encoding to ANSI, and then refresh the page, and the long-awaited thing finally shows up.

Summary: The charset of the header definition may cause the page output to be blank if it does not match the encoding of the file itself.

http://www.bkjia.com/PHPjc/509157.html www.bkjia.com true http://www.bkjia.com/PHPjc/509157.html techarticle today, download a code back from the Internet debugging, the beginning of the code error, after a turn debugging, the code finally no problem. But IE shows a blank piece, view the source code of the Web page, ...

  • Contact Us

    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

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.