HTML Unicode (UTF-8) လုပ်သုံး စာအုပ်

Unicode 联盟

Unicode 联盟开发了 Unicode 标准。他们的目标是用其标准的 Unicode 转换格式(UTF)替换现有的字符集。

Unicode 标准已经获得成功,并通过 HTML、XML、Java、JavaScript、电子邮件、ASP、PHP 等得以实现。在许多操作系统和所有现代浏览器中,同样支持 Unicode 标准。

Unicode အဖွဲ့အစည်း သည် အခြေခံ အဆိုပါ အဆိုပါ အဆိုပါ အဆိုပါ ဖြစ်သည်

Unicode အချက်အလက် အသင်း

Unicode သည် မည်သည့် အချက်အလက် အသင်း ဖြင့် ဖြစ်ပေါ်လာနိုင်သည်။ အသုံးများဆုံး အောက်ဆိုခဲ့ အဆိုပါ အောက်ဆိုခဲ့ ဖြစ်သည်

Character Set အကြောင်းကြားချက်
UTF-8

UTF8 အချက်အလက် အကွာအဝေး 1 ဖက်မှ 4 ဖက် ဘက်မှ ဘက် ဖြစ်သည်

UTF-8 သည် Unicode အဆိုပါ အချက်အလက် အရေးယူနိုင်သည်

UTF-8 သည် ASCII နှင့် ပြည်ထောင်စုံလုံး ဖြစ်သည်။ UTF-8 သည် အီးလိုက် နှင့် ဝတ္ထု စာမျက်နှာ အဖြစ် အသုံးပြုသည်

UTF-16

The 16-bit Unicode Transformation Format is a variable-length character encoding of Unicode, capable of encoding the entire Unicode repertoire.

UTF-16 is used in major operating systems and environments such as Microsoft Windows, Java, and .NET.

Note:The first 128 characters of Unicode (corresponding to ASCII) are encoded using a single eight-bit byte, which has the same binary value as ASCII, making valid ASCII text also valid UTF-8 encoded Unicode.

Tip:HTML 4 supports UTF-8. HTML 5 supports UTF-8 and UTF-16!

HTML5 standard: Unicode UTF-8

Since the character set size in ISO-8859 is limited and not compatible with multilingual environments, the Unicode Consortium developed the Unicode standard.

Unicode standard (almost) covers all characters, punctuation marks, and symbols in the world.

Unicode supports independent text processing, storage, and transmission of text from platform and language.

The default character encoding in HTML5 is UTF-8.

If the character set used by an HTML5 web page is different from UTF-8, then the character set should be specified in the <meta> tag, for example:

Example

<meta charset="ISO-8859-1">

Difference between Unicode and UTF-8

Unicode is a character set. UTF-8 is an encoding.

Unicode is a list of characters with unique decimal numbers (code points). A = 65, B = 66, C = 67, ...。

This decimal number list represents the string "hello": 104 101 108 108 111

Encoding is the way of converting these numbers to binary numbers to store in a computer:

UTF-8 encoding stores "hello" like this (binary): 01101000 01100101 01101100 01101100 01101111

EncodingNumbers are converted to binary.Character SetCharacters are converted to numbers.

HTML5 UTF-8 Character Codes

အေသို့ ကို ကျမ်းစာအုပ် တစ်အုပ် အပါအဝင်သော ကျမ်းစာအုပ် အချက်အလက်များမှ ကျမ်းစာအုပ် အချက်အလက်များကို မြင်တွေ့ပါ။

အက္ခရာစက္ခု ပုံစံ သက်ဆိုင်း
C0 Controls and Basic Latin 0-127 0000-007F
C1 Controls and Latin-1 Supplement 128-255 0080-00FF
Latin Extended-A 256-383 0100-017F
Latin Extended-B 384-591 0180-024F
Spacing Modifiers 688-767 02B0-02FF
Diacritical Marks 768-879 0300-036F
Greek and Coptic 880-1023 0370-03FF
Cyrillic Basic 1024-1279 0400-04FF
Cyrillic Supplement 1280-1327 0500-052F
General Punctuation 8192-8303 2000-206F
Currency Symbols 8352-8399 20A0-20CF
Letterlike Symbols 8448-8527 2100-214F
Arrows 8592-8703 2190-21FF
Mathematical Operators 8704-8959 2200-22FF
Box Drawings 9472-9599 2500-257F
Block Elements 9600-9631 2580-259F
Geometric Shapes 9632-9727 25A0-25FF
Miscellaneous Symbols 9728-9983 2600-26FF
Dingbats 9984-10175 2700-27BF