Why we use UTF-8 and what is benefit??? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 6

Why we use UTF-8 and what is benefit???

30th Apr 2017, 1:02 PM
niharika
niharika - avatar
5 Answers
+ 22
character_setSpecifies the character encoding for the HTML document. Common values: UTF-8 - Character encoding for UnicodeISO-8859-1 - Character encoding for the Latin alphabet In theory, any character encoding can be used, but no browser understands all of them. The more widely a character encoding is used, the better the chance that a browser will understand it.
30th Apr 2017, 1:35 PM
Priyanshu Dhokne
+ 4
Initially, programmers from different countries encoded the text, not thinking that in the world there are still other languages ​​with their own symbols. When the digital world was united by the Internet, it became necessary to display letters and pages so that they could be read or written on any computer in the world. So there were code pages or encodings. As meta-information, they were attached to each text, telling the browser or mail client how to decrypt bytes into printed characters. It is not surprising that the encoding was often forgotten to indicate or mistaken with it. The programs had to learn to define it automatically, which was not always possible. It became quite obvious that the world needed digital Esperanto. Unicode became it. The most promising version of Unicode is UTF-8. It is backward compatible with an ascii encoding, it does not break if an incorrect character is found in the string, and it has a dynamic character code size from one to six bytes.
30th Apr 2017, 1:20 PM
Jeth
Jeth - avatar
+ 3
Utf8 is for coding chars of foreing languages, see: https://www.sololearn.com/discuss/336951/?ref=app
30th Apr 2017, 2:30 PM
⏩▶Clau◀⏪
⏩▶Clau◀⏪ - avatar
+ 1
can u be more clear I am not getting u??it's new for me
30th Apr 2017, 1:06 PM
niharika
niharika - avatar
- 1
We use utf-8 for character encoding ,it will send data on network by making group of 8 characters.
2nd May 2017, 2:10 PM
Piyush Shukla
Piyush Shukla - avatar