+ 4

UTF in html

UTF-8 or UTF-16 i still dont understand what we should use... i've heard that utf-8 uses 8bit(1byte) to encode the characters & UTF-16 uses 2bytes for more characters for more complex languages like arabic. I just wanted to know what would happen if we use utf16 or utf32 for only using english language. i mean... when we can use 2 or 4 bytes why should we use 8bits??? ( i know its a dumb question & im a beginner )

7th Mar 2017, 3:08 PM
pooria1998
pooria1998 - avatar
2 ответов
+ 1
It's misleading. Utf-8 is at least (!!) 8 bits long. It can get as much as 8 bytes long in theory, but most of that space isn't even used. Look for Tom Scott Utf-8 on YouTube. Short answer: Always use Utf-8.
8th Mar 2017, 5:58 AM
1of3
1of3 - avatar
+ 6
its not a dump question. everyone has to learn something before they can know it. It's simply a matter of not needing so much memory when you are using English.
7th Mar 2017, 3:19 PM
Andre van Rensburg
Andre van Rensburg - avatar