Solution to the problem that a line is left blank for no reason on the utf8-encoded page under IE and the utf8 page cannot be displayed

Solution to the problem that a line is left blank for no reason on the utf8-encoded page under IE and the utf8 page cannot be displayed
The reason is that all files are encoded in utf8. When the file is included, the final binary stream contains multiple UTF8 BOM tags. IE cannot parse the page containing multiple UTF8 BOM tags normally, and directly replaces them with the actual displayed carriage return, which results in a blank line. Firefox does not have this problem.
Therefore, if the template uses the inclusion method to include multiple utf8 files and needs to be saved using UltraEdit, select utf8 without BOM format in the Save As function.
In addition, if a Chinese page places the title tag before <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> in the html head tag, the page will be blank.
So utf8 pages should use standard order


Copy code
The code is as follows:

<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<meta http-equiv="content-language" content="zh-CN" />
<meta name="robots" content="index,follow" />
<meta name="keywords" content="" />
<meta name="description" content="" />
<meta name="rating" content="general" />
<meta name="author" content="" />
<meta name="copyright" content="" />
<meta name="generator" content="" />
<title></title>

<<:  A complete explanation of MySQL high availability architecture: MHA architecture

>>:  setup+ref+reactive implements vue3 responsiveness

Recommend

Docker exposes port 2375, causing server attacks and solutions

I believe that students who have learned about th...

MySQL joint index effective conditions and index invalid conditions

Table of contents 1. Conditions for joint index f...

Detailed Example of MySQL curdate() Function

MySQL CURDATE Function Introduction If used in a ...

Analysis of the process of simply deploying nginx in Docker container

1. Deploy nginx service in container The centos:7...

8 tips for Vue that you will learn after reading it

1. Always use :key in v-for Using the key attribu...

How to preview pdf file using pdfjs in vue

Table of contents Preface think Library directory...

Five practical tips for web form design

1. Mobile selection of form text input: In the te...

HTML table tag tutorial (46): table footer tag

The <tfoot> tag is used to define the style...

How to wrap HTML title attribute

When I was writing a program a few days ago, I wan...

CSS implements Google Material Design text input box style (recommended)

Hello everyone, today I want to share with you ho...

How to configure tomcat server for eclipse and IDEA

tomcat server configuration When everyone is lear...

Design Theory: Ten Tips for Content Presentation

<br /> Focusing on the three aspects of text...