Header usage
The Header () function sends an original HTTP header [HTTP header] to the client.The header is the string sent by the server before the server passes HTML data to the browser with HTTP co-meaning.Separate HTML files with a blank line.
The problem of character encoding seems to be very small, often overlooked by technical staff, but it can easily lead to some puzzling problems. Here is a summary of the character encoding of some of the popular knowledge, I hope to be helpful to
Write web todayProgramA bug occurs, as shown in the following two figures:
InSource codeMedium,CodeThere is no problem with the structure, and Firefox Marked Lines 1/2/3/25/26 as red, which means there is a problem. When I look at firebug, I
Why in the ASP specified the codepage for 65001 also often appear in Chinese display garbled. Wit here will explain this problem in detail, lest many friends again detours, even exclude UTF-8.
If you do not know what UTF-8 is, then the wit suggested
Definition and usageThe charset attribute specifies the character encoding used in an external script file.
If the character encoding in an external file is different from that in the main file, the charset attribute is used.
The default character
Currently, blog programs are generally UTF-8 encoded. To add other programs to the website, if it is not UTF-8 but gb2312, it is easy to see garbled characters when opening pages during page conversion, after searching for materials and testing, we
Definitions and usageThe CharSet property stipulates the character encoding used in the external script file.
If the character encoding in the external file differs from the encoding in the main file, the CharSet attribute is used.
The default
You want the server to support a full UTF-8 encoded Web app, but always fall back to iso-8859-1.
Configuration is MySQL 5.6, PHP 5.5, and Apache 2.2.
Want to know exactly where to set the code? There is no need to do the configuration list or
PHP Chinese garbled is one of the common problems in PHP development. PHP Chinese garbled sometimes occurs in the Web page itself, some generated in the process of MySQL interaction, and sometimes related to the operating system. Here's a
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.