Html garbled characters
Do you often encounter Chinese garbled characters? How to adjust html Chinese garbled characters?
<Label name lang = lang>-the lang attribute specifies the language type of the element in the tag range. English lang = "en", Chinese lang = "zh", Japanese lang = "ja ".
Generally, English is selected,
Reasons for garbled characters:
1. Mixed content of different codes: HTML garbled characters are generated due to html Encoding Problems (Common gb2312 and UTF-8 encoding contents exist at the same time)
2. HTML encoding not set:
Not set. UTF-8 is set here
3. Use notepad to edit html: Using notepad to directly edit html is also prone to html encoding garbled characters.
I use sublime. I suggest using some editors for notepad ++ and sublime to reduce Garbled text.
To avoid HTML garbled characters, the root problem is coding. One is to set the encoding tag, and the other is to use DW software to edit (modify) webpage files; the data called from the database during program development must be consistent with the HTML code. This reduces or completely avoids the problem of garbled HTML encoding.
Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.