In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
Editor to share with you html how to solve the problem of garbled code, I believe that most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to understand it!
If you want to display the HTML page correctly, you need to let the browser know which character set you are using. The browser will decode your HTML code with the character set you use to avoid garbled code.
The earliest character set used on the World wide Web is ASCII. ASCII supports 09 numbers, lowercase or uppercase letters, and the following special characters.
Unicode Alliance
In XML, JavaScript, LDAP, and Java, Unicode has been implemented, developed by the Unicode Alliance, with the goal of replacing the existing character set with the standard Unicode conversion format (UTF).
Unicode is compatible with different character sets. The most commonly used encodings in browsers are UTF-8 and UTF-16.
Characters in the character set description UTF-8UTF8 can be 1-4 bytes long. UTF-8 can represent any character in the Unicode standard. UTF-8 is backward compatible with ASCII. UTF-8 is the preferred coding for web pages and e-mail. The Unicode conversion format of UTF-1616 bits is a Unicode variable character coding that encodes all Unicode instruction tables. UTF-16 is mainly used in operating systems and environments, such as Microsoft's Windows 2000/XP/2003/Vista/CE and Java and .NET bytecode environments.
After we add UTF-8 to the header of the code, there will be no more garbled code. Code demonstration:
TitleISO character set
ISO character set A standard character set defined by the International Standards Organization (ISO) according to different alphabets.
Here are the character sets used around the world.
The character set describes languages that use ISO-8859-1Latin alphabet part 1 North America, Western Europe, Latin America, the Caribbean, Canada, Africa ISO-8859-2Latin alphabet part 2 Eastern Europe ISO-8859-3Latin alphabet part 3SE Europe, Esperanto, other miscellaneous ISO-8859-4Latin alphabet part 4 Scandinavia / Baltic (and other parts not included in ISO-8859-1) ISO-8859-5Latin/Cyrillic part 5 uses the ancient Slavic alphabet Examples include Bulgarian, Belarusian, Russian, Macedonian ISO-8859-6Latin/Arabic part 6, ISO-8859-7Latin/Greek part 7, the language of the Arabic alphabet, modern Greek, and the mathematical symbol ISO-8859-8Latin/Hebrew part 8 derived from Greek, which uses the Hebrew language ISO-8859-9Latin 5 part 9 Turkish. Except that Turkish characters replace Icelandic characters, others are the same as ISO-8859-1. ISO-8859-10Latin 6 Lapland, Germanic, Eskimo Nordic ISO-8859-15Latin 9 (aka Latin 0) is similar to ISO 8859-1, the euro symbol and other characters replace some of the less used symbols ISO-2022-JPLatin/Japanese part 1 native language ISO-2022-JP-2Latin/Japanese part 2 native language ISO-2022-KRLatin/Korean part 1 Korean above is all the content of the article "how to solve the garbled problem in html" Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.