+ 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 )
2 Respuestas
+ 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.
+ 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.