UTF-8
== UTF-8 ==
UTF-8 (8-bit Unicode Transformation Format) is a variable-width character encoding used for electronic communication. Defined by RFC 3629, it is capable of encoding all 1,112,064 valid character code points in Unicode using one to four one-byte (8-bit) code units. UTF-8 is the dominant character encoding for the World Wide Web, accounting for more than 90% of all web pages.
History[edit | edit source]
UTF-8 was designed by Ken Thompson and Rob Pike in 1992. It was created to be backward compatible with ASCII and to avoid the complications of endianess and byte order marks that plagued other encodings like UTF-16 and UTF-32.
Encoding[edit | edit source]
UTF-8 encodes each of the 1,112,064 characters in the Unicode character set using one to four 8-bit bytes. The first 128 characters (US-ASCII) need one byte. The next 1,920 characters need two bytes to encode. This includes characters from most European languages and some non-European languages. Three bytes are needed for the rest of the Basic Multilingual Plane (which contains virtually all characters in common use, including most Chinese, Japanese, and Korean characters). Four bytes are needed for characters in other planes of Unicode, which include less common CJK characters, various historic scripts, and emoji.
Advantages[edit | edit source]
UTF-8 has several advantages over other encodings:
- It is backward compatible with ASCII.
- It does not suffer from endianess issues.
- It is efficient in terms of storage for ASCII characters.
- It is widely supported across different platforms and systems.
Usage[edit | edit source]
UTF-8 is the standard encoding for the World Wide Web and is used by most modern software applications. It is also the default encoding for XML and JSON files.
Related Pages[edit | edit source]
Search WikiMD
Ad.Tired of being Overweight? Try W8MD's physician weight loss program.
Semaglutide (Ozempic / Wegovy and Tirzepatide (Mounjaro / Zepbound) available.
Advertise on WikiMD
WikiMD's Wellness Encyclopedia |
Let Food Be Thy Medicine Medicine Thy Food - Hippocrates |
Translate this page: - East Asian
中文,
日本,
한국어,
South Asian
हिन्दी,
தமிழ்,
తెలుగు,
Urdu,
ಕನ್ನಡ,
Southeast Asian
Indonesian,
Vietnamese,
Thai,
မြန်မာဘာသာ,
বাংলা
European
español,
Deutsch,
français,
Greek,
português do Brasil,
polski,
română,
русский,
Nederlands,
norsk,
svenska,
suomi,
Italian
Middle Eastern & African
عربى,
Turkish,
Persian,
Hebrew,
Afrikaans,
isiZulu,
Kiswahili,
Other
Bulgarian,
Hungarian,
Czech,
Swedish,
മലയാളം,
मराठी,
ਪੰਜਾਬੀ,
ગુજરાતી,
Portuguese,
Ukrainian
Medical Disclaimer: WikiMD is not a substitute for professional medical advice. The information on WikiMD is provided as an information resource only, may be incorrect, outdated or misleading, and is not to be used or relied on for any diagnostic or treatment purposes. Please consult your health care provider before making any healthcare decisions or for guidance about a specific medical condition. WikiMD expressly disclaims responsibility, and shall have no liability, for any damages, loss, injury, or liability whatsoever suffered as a result of your reliance on the information contained in this site. By visiting this site you agree to the foregoing terms and conditions, which may from time to time be changed or supplemented by WikiMD. If you do not agree to the foregoing terms and conditions, you should not enter or use this site. See full disclaimer.
Credits:Most images are courtesy of Wikimedia commons, and templates Wikipedia, licensed under CC BY SA or similar.
Contributors: Prab R. Tumpati, MD