Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What if Dreamweaver displays garbled code when editing a web page preview?

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly introduces "Dreamweaver editing page preview when showing garbled code how to do", in the daily operation, I believe that many people in Dreamweaver editing web page preview show garbled how to do on the question of doubt, editor looked up all kinds of data, sorted out a simple and easy to use method of operation, hope to answer everyone's "Dreamweaver editing web page preview when showing garbled code how to do" help! Next, please follow the editor to study!

1. First of all, I would like to review the operation steps of the problem. In order to make you understand more clearly, I have reduced the code to a minimum.

2. Then I use 360 browser to preview my code effect. Unfortunately, there is really garbled code.

3. What is the reason for this? you should know that there are many kinds of codes, including the international common code utf-8, the Chinese code GBK, and those of other countries. The browser can also recognize that the vast majority of the code is not garbled, because the browser will automatically read the information declaring the code in the meta information of the web code, so whether the meta information of my code does not declare the coding of the code, I will look back immediately. Sure enough, there is no declaration of coding information.

4. Let's correct this mistake and add the meta information that declares the encoding to the web page coding.

5. All right, let's preview again to see if it is still garbled.

6. All right, let's sum up:

1) when you write a web page, you must remember to see if there is a meta message that declares the code. Any code is fine, but you must declare it.

2) the browser can recognize most of the codes through the meta message, provided that the meta message declares the code.

3) the coding format of a single web page must be consistent, otherwise there will be problems of garbled code in some places and non-garbled code in some places.

Note:

1. When writing a web page, you must remember to see if there is a meta message that declares the code. Any code is fine, but you must declare it.

2. Browsers can recognize most of the codes through the meta information, provided that the meta information declares the code.

At this point, the study on "how to display garbled codes when Dreamweaver edits a web page preview" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report