Ep 020: Unicode Code Points and UTF-8 Encoding

  Рет қаралды 41,916

Intermation

Intermation

Күн бұрын

Пікірлер: 25
@_vehicle
@_vehicle 3 жыл бұрын
Aw man! You are awesome! I study computer science and I had to write a program that decodes signs to their unicode representation... Script from my lecturer was sa complicated and unclear... I spent a lot of hours trying to write this program and suddenly I found your channel, and I understood the most of the material in a little more than 20 minutes (including pauses). You are awesome teacher!
@dubshelb
@dubshelb 3 жыл бұрын
This video finally helped me grasp this topic. You explained this far better than my computer science professor did :) thank you!
@kennyhuang7393
@kennyhuang7393 3 жыл бұрын
I am leaving this comment since this helped me during my first year of college majoring in CS. Thank you.
@guchierrez
@guchierrez 3 жыл бұрын
thanks Heisenberg!
@vinodcs80
@vinodcs80 3 жыл бұрын
Read many articles but concept became clear for Unicode and UTf-8 after watching this video. Thanks you very much, Appreciate it.
@mrx-qi8th
@mrx-qi8th 3 жыл бұрын
I'm so lucky i found this channel, thank u
@trayfor
@trayfor 3 жыл бұрын
Thank You! This was extremely helpful. I struggled to find resources that explained it as proficiently and eloquently as you.
@tymothylim6550
@tymothylim6550 3 жыл бұрын
Thank you very much for this video! It was very interesting and educational for me! :)
@lorensims4846
@lorensims4846 3 жыл бұрын
7 bit for ASCII let them use the eighth bit for parity checking. They could a 1 or 0 to that eighth bit to make the bit count always come out even (or odd depending on the local standard). If a byte came through that did NOT have an even bit count it was clearly in error. It was a very useful feature back in the day.
@syedtafhimshams5547
@syedtafhimshams5547 3 жыл бұрын
Thank You! This was extremely helpful.
@ayys_habu
@ayys_habu 4 жыл бұрын
I am confused regarding 11:55 Shoudn't it be 128 to 2175(2047+128)?
@mikeyamaro9035
@mikeyamaro9035 3 жыл бұрын
no. the 2 byte utf-8 only has 11 bits to store the unicode points. 2^11 = 2048. Thats the maximum amount of unicode points we can represent. Of the 2048 unicode points we can represent, 128 of those are used to represent the ascii characters. so ( 0 - 128 ) for ascii characters and (128 - 2047) for other characters. on top of that 2047+128 also doesn't make sense be cause we would need more than 11 bits for that.
@brod515
@brod515 3 жыл бұрын
@@mikeyamaro9035 I don't think you understood what he was asking. if we have a byte that starts with 0 then we are using 1 byte encoding that means we simply look at the next 7 bits which gives as values from 0-127. that's already taken care of right?. so if we meet a byte where it's first two bits are 1 0 that means we are using 2-byte encoding and so we have 11 bits and can represent 2048 values. since we already know the code point can't be from 0-127 the first value must be 128 and we have 2048 other values to represent @Habu Ayush was asking whether the representable values should be from 128 to (127 + 2048)? We start at 128 and we have 2048 values we can represent. I'm also wondering the same thing
@MccZerk
@MccZerk 3 жыл бұрын
I feel like he should have written 0 -> 2047, but, normally if the number can be represented inbetween 0->127, then they use 1 byte encoding to save sending two bytes.
@TayakornRakwetpakorn
@TayakornRakwetpakorn 3 жыл бұрын
I thought about this too when I watched the video. In theory, 2 byte utf-8 should be able to store another 2^11. But in practice, it doesn't, so it is a bit of waste of 128 combinations there. I guess this is because when UTF-8 decoder decodes bytes, it just converts bytes to code points. It doesn't remember that how many bytes the code point was read from. This is clearer when converting code points to UTF-8. Say U+0041 ('A') for example has 7 bits to the most significant 1. So 1 byte UTF-8 (which has 7 bits) is enough. We can also use 2 byte, 3 byte, etc. for the same code point U+0041 too. But if we do that, a code point will have many UTF-8 representations and somehow they decided that this is not good(why? still figuring this out), so we only have 1-to-1 code point to UTF-8. For example 2 byte 'A' in hex is C1 81 which is an invalid UTF-8. onlineutf8tools.com/convert-hexadecimal-to-utf8 will give an error.
@rubinanazir2662
@rubinanazir2662 3 жыл бұрын
i am confused. A represent 41??? 9:18
@humza4848
@humza4848 3 жыл бұрын
dope vid bro
@aWorldview
@aWorldview 3 жыл бұрын
Excellent presentation!
@fatimazohrabennai6949
@fatimazohrabennai6949 3 жыл бұрын
thank you so much
@yanchaoli551
@yanchaoli551 4 жыл бұрын
for 4 bytes utf-8 encoding, total available length is 21-digits, which goes to 0x1F FF FF, why the unicode codepoints ends at 0x10 FF FF, what happens to the entire nibble?
@mikeyamaro9035
@mikeyamaro9035 3 жыл бұрын
no one has made unicode characters past 0x10FFFF the link shows the list of the unicode code point ranges(in hexadecimal) for different languages www.unicode.org/Public/UNIDATA/Blocks.txt at the bottom you'll see that the last range ends at 0x10 FF FF
@tiburciolapanak
@tiburciolapanak 3 жыл бұрын
Awesome
@ssangkal1069
@ssangkal1069 3 жыл бұрын
Wait, he is writing stuff in flipped horizontally?!!? Btw, great video .thanks
@PHrushikesh
@PHrushikesh 3 жыл бұрын
Breaking Bad vibes 😉😉😉
@salvadorestrella8
@salvadorestrella8 3 жыл бұрын
This is a great presentation! thank you. Let me know if you need help to sell that blue meth
Ep 021: UTF-8 Encoding Examples
14:34
Intermation
Рет қаралды 37 М.
Unicode Encoding! UTF-32, UCS-2, UTF-16, & UTF-8!
24:52
EmNudge
Рет қаралды 52 М.
人是不能做到吗?#火影忍者 #家人  #佐助
00:20
火影忍者一家
Рет қаралды 20 МЛН
Chain Game Strong ⛓️
00:21
Anwar Jibawi
Рет қаралды 41 МЛН
How to treat Acne💉
00:31
ISSEI / いっせい
Рет қаралды 108 МЛН
The Mötley Crüe Guide to Unicode Normalization
14:35
Dylan Beattie
Рет қаралды 10 М.
Characters, Symbols and the Unicode Miracle - Computerphile
9:37
Computerphile
Рет қаралды 2 МЛН
one year of studying (it was a mistake)
12:51
Jeffrey Codes
Рет қаралды 232 М.
Why I can type  ±©♥🔥🂱Ʊ in this title
11:08
Phil Edwards
Рет қаралды 144 М.
⍼ - Why Nobody Knows What This One Unicode Character Means
5:45
Half as Interesting
Рет қаралды 1,5 МЛН
Every Python dev falls for this (name mangling)
14:11
mCoding
Рет қаралды 140 М.
Coding Challenge 166: ASCII Text Images
22:42
The Coding Train
Рет қаралды 1,1 МЛН
Ep 019: Introduction to ASCII Character Encoding
15:51
Intermation
Рет қаралды 7 М.