html editing converter

php中世界最好的语言
Release: 2017-11-23 10:23:22
Original
2432 people have browsed it

Sometimes you need to convert your own HTML encoding, so this article will teach you several methods to convert HTML encoding.

Commonly used HTML encoding urf-8 encoding is converted to gb2312 encoding or gb2312 is converted to utf-8 encoding quick conversion settings. Here is a tutorial on using DW software to quickly convert the conversion settings.

HTML conversion cannot be directly opened through Notepad. After manually modifying the letters in the code, it is considered that the encoding conversion modification is completed. The consequences of such direct modifications can easily cause the modified webpage to be opened in a browser and appear garbled HTML (html How to open the file).

If your HTML encoding is utf-8 and you want to change it to gb2312 encoding, you can directly open the HTML file with Notepad and directly change utf-8 to gb2312. This method is wrong. will cause HTML web pages to be garbled.

Same as CSS encoding conversion, the encoding needs to be converted in software. It is recommended to use DW software and use DW software to perform encoding conversion.

Next, I will introduce to you the encoding conversion method.

First, if an HTML web page is encoded in utf-8, the code is as follows:

<!DOCTYPE"> 
<html "> 
<head> 
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
<title>实例实践</title> 
</head> 
<body> 
HTML编码转换实践 
</body> 
</html>
Copy after login

The original HTML web page is encoded as utf-8

The original HTML web page is encoded as utf -8

At this time, it needs to be converted to the GB2312 encoding. You cannot directly manually modify these letters and numbers to complete the conversion. We need to use the DW software encoding conversion tool to perform the conversion.

Step 1: Click "Modify (M)" in the DW software to expand and click "PageProperties(p)"

Step 2: Pop up "Page Properties" Find and click to select "Title/Encoding" in the tab

Step 3: Select the "Encoding" type on the right side

Step 4: After selecting the encoding type, click "OK" to complete Encoding conversion

Summary: HTML webpage encoding conversion cannot be done manually using Notepad or directly modifying the encoding letters and numbers in the software. Instead, a software conversion tool must be used to convert the HTML encoding settings to truly achieve the conversion. This reduces the possibility of garbled web pages, and at the same time, the conversion of other codes can also be achieved using the above tutorial method. You might as well follow the above tutorial to learn how to use DW software to convert html speech encoding.

These are the methods for converting HTML encoding. For more exciting information, please pay attention to other related articles on the php Chinese website!

Related reading:

How to use the

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!