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

MySQL 8.0.19 Installation Tutorial

Download the installation package from the offici...

mysql: [ERROR] unknown option '--skip-grant-tables'

MySQL database reports ERROR 1045 (28000): Access...

Analysis and treatment of scroll bars in both HTML and embedded Flash

We often encounter this situation when doing devel...

How to forget the password of Jenkins in Linux

1.Jenkins installation steps: https://www.jb51.ne...

Implementation of breakpoint resume in Node.js

Preface Normal business needs: upload pictures, E...

More Features of the JavaScript Console

Table of contents Overview console.log console.in...

Best way to replace the key in json object

JSON (JavaScript Object Notation, JS Object Notat...

How to define input type=file style

Why beautify the file control? Just imagine that a...

Implementation of Element-ui Layout (Row and Col components)

Table of contents Basic instructions and usage An...

Various ways to modify the background image color using CSS3

CSS3 can change the color of pictures. From now o...

Page Refactoring Skills - Javascript, CSS

About JS, CSS CSS: Stylesheet at the top Avoid CS...

Three ways to parse QR codes using javascript

Table of contents 1. Use JavaScript to parse the ...

Tutorial on configuring and using i3 window manager in Linux

In this article, I will show you how to install a...

In-depth explanation of Session and Cookie in Tomcat

Preface HTTP is a stateless communication protoco...