What is the difference between UTF-8 objects and HTML?

What is the difference between UTF-8 objects and HTML?

+8
source share
5 answers

See UTF-8 as a lossless and self-synchronizing tool, compare the list of natural numbers with a byte so that you can return natural numbers (lossless), and if you just fall "in the middle" of the stream, which is not a big problem. (Self-synchronizing)

Each natural number seems to be a “symbol."

HTML entities are a way of representing the same natural numbers in such a way as:, denotes a natural number 127, in Unicode it is a symbol DEL.

In UTF-8, this byte stream: 0111 1111

127, , 128 : 1000 0001 1111 1111.

DEL 0111 1111 0111 1111. UTF-8 , " " , , , 4 , 1 4 . . UTF-8, , " ", .

+3

UTF-8 - .

HTML ( ASCII) . , UTF-8 .

HTML Entities - , , HTML, . , " " (&lt; &gt;) (.. <text> ) HTML, .

+4

"A", , "A" , 1 0. . ASCII , , . ( ).

UTF-8 HTML , ASCII. HTML , . , , ASCII, ASCII. UTF-8 (Unicode) , , . HTML- "" , , . UTF-8 , .

, , ASCII:

Price: $20 (UTF-8)
  Price: $20 (ASCII HTML)

, , ASCII:

Beträge: 20€ (UTF-8)
  Betr&auml;ge: 20&euro; (ASCII HTML)

, , , , ASCII:

値段:二千円 (UTF-8)
  &#x5024;&#x6BB5;&#xFF1A;&#x4E8C;&#x5343;&#x5186; (ASCII HTML)

UTF-8 , UTF-8. , UTF-8. UTF-8 (Unicode) , ( ). , "as-is". .

HTML , . &auml; "ä". "& auml;", &amp;auml;.
HTML , , . "" . , . Unicode.

HTML-, , , HTML- . HTML . <b>text</b> - , HTML. "<b> text </b> ", &lt;b&gt;text&lt;/b&gt;, HTML HTML.

+3

. HTML HTML-, HTML ( ). , &gt; a > , while > . HTML, .

UTF-8 - Unicode, US ASCII, . ( , ) 6 . (BMP), , - , (Ogham) .

+2

UTF-8 - , htmlentities - , HTML- . . .

0
source

All Articles