HTML garbled problem solution

Reasons for garbled characters in HTML

As shown:

 How to avoid garbled characters?

method one:

After opening the written text, select Save As in the file options, then the following dialog box pops up:

ANSI corresponds to the GBK character set, we have to choose the character set corresponding to the default file. eg:UTF-8

 

Method Two:

Use tags to tell the browser to parse the file in UTF-8 character set

<html>
    <head>
        <meta charset = "utf-8"/>
    <head>
    <body>
        多易出品,必属精品
    <body>
</html>

note:

Keep the character set used for file storage and parsing consistent.


Have you got the above knowledge?

If you want to know more, you can communicate with the blogger at any time~~~

To watch more technical videos, please search Duoyi Education at Station B

The most professional big data full set of teaching videos

 

Easy to produce, it must be a boutique

Guess you like

Origin blog.csdn.net/sinat_40775402/article/details/108196773