Home  >  Article  >  Web Front-end  >  How to convert utf-8 to gb2312? Introduction to html encoding conversion method

How to convert utf-8 to gb2312? Introduction to html encoding conversion method

云罗郡主
云罗郡主Original
2018-10-11 11:47:285189browse

We all know that there are three formats for website encoding: utf-8, gbk, and gb2312. When many programmers are building websites, they will encounter the problem of converting utf-8 to gb2312 or gb2312 to utf-8? Let’s summarize for you how to convert utf-8 to gb2312? html encoding conversion method.

How to convert utf-8 to gb2312? Introduction to html encoding conversion method

Many programmers want to quickly convert utf-8 to gb2312? In fact, it is not difficult to convert utf-8 to gb2312. Let’s talk about the method below.

If the encoding of your website is utf-8, and now you want to change it to gb2312, then we need a dw software. We can use a dw software to convert the encoding.

The first step is to open a utf-8 encoded html file, and then open the dw software. In the dw software, we find the modification in the status bar. A page attribute appears in the sub-column. Click on the page attribute. , the page properties tab will have a title encoding.

The second step is to find the encoding type on the right and select the gb2312 you want to convert.

The third step is to click OK to realize the encoding conversion.

It is worth noting that we cannot modify it directly on Notepad. We can use software to convert it. If you modify it directly on Notepad, garbled HTML will appear.

The above is how to convert utf-8 to gb2312? Introduction to html encoding conversion method. If you want to know more about HTML video tutorial, please pay attention to php Chinese website.


The above is the detailed content of How to convert utf-8 to gb2312? Introduction to html encoding conversion method. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn