Тёмный

Unicode and Byte Order 

Computer Science Lessons
Подписаться 218 тыс.
Просмотров 17 тыс.
50% 1

Опубликовано:

 

24 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 66   
@RepertoireSix
@RepertoireSix 3 года назад
I must have watched half a dozen videos about encoding text over the years, but this one is easily the best one! Very easy to understand with all the examples. Now to hope I don't ever have to deal with anything else than utf-8...
@ComputerScienceLessons
@ComputerScienceLessons 3 года назад
Thank you. I think UTF-8 will be around until we start communicating with extra-terrestrials. :)KD
@mhn147
@mhn147 Год назад
I'm a CS graduate and I needed a refresher about this subject and this explanation had everything that I needed. Thanks.
@ComputerScienceLessons
@ComputerScienceLessons Год назад
You are most welcome :)KD
@lostcarpark
@lostcarpark 2 года назад
Probably the clearest explanation I've seen on the topic. There's lots that cover the basics pretty well, but completely skip over the byte order aspect.
@ComputerScienceLessons
@ComputerScienceLessons 2 года назад
Thank you :)KD
@paulfontaine7819
@paulfontaine7819 3 года назад
I have been waiting for this clear and precise explanation for 20 years I believe. Thanks so much.
@Moe5Tavern
@Moe5Tavern Месяц назад
This was super interesting and well done, thank you so much! I had an issue with BOM yesterday that broke my script because the shebang wasn't being recognized. I love discovering Hex Editor Neo, gave me a lot of peace of mind, actually seeing the "ef bb ef" in front of my code haha.
@ComputerScienceLessons
@ComputerScienceLessons Месяц назад
Delighted to be of service :)KD
@paulg687
@paulg687 Год назад
Seriously underrated video. Should have a LOT more view than this.
@ComputerScienceLessons
@ComputerScienceLessons Год назад
Thank you :)KD
@booboo-oh1vd
@booboo-oh1vd 3 года назад
Watched all the videos in this playlist. Can't thank you enough.
@ComputerScienceLessons
@ComputerScienceLessons 3 года назад
You're most welcome. Thanks for watching :)KD
@jvsnyc
@jvsnyc 3 года назад
Quite excellent. So many little places it is possible, even easy to trip up and give sub-par or confusing information on this topic, and you just tap dance right across that minefield. Beautiful.
@ComputerScienceLessons
@ComputerScienceLessons 3 года назад
You are very kind. Thank you :)KD
@parthodasporag9885
@parthodasporag9885 2 года назад
Best video on youtube about Unicode.
@ComputerScienceLessons
@ComputerScienceLessons 2 года назад
Thank you :)KD
@smallerz6486
@smallerz6486 3 года назад
As a Japanese speaker, the fact that the first four glyphs in your thumbnail are "I❤日本" made me wonder if you're a fan of Japan! (日本 means Japan in Japanese)
@ComputerScienceLessons
@ComputerScienceLessons 3 года назад
Konnichiwa - Japan is at the top of my places to visit, one day. :)KD
@surman1816
@surman1816 3 года назад
another good one keep doing the great work man
@Mro0Ali0o
@Mro0Ali0o 2 месяца назад
Thanks for the great video. What is the default Endianness for most Windows file types? Is it always Big-Endian unless otherwise specified?
@jvsnyc
@jvsnyc 3 года назад
One question at the end. There are 17 * 256 * 256 possible characters across the 17 planes, not including the various blackout or restricted sections like those used for surrogates...isn't that more like: 1,114,111 than well over 2 million? They do require 21 bits, rather than 20, because they left all but 2048 of the original BMP to lie where they were, and added another 1024 * 1024 possible new ones on top of that, so it is (256 * 256) * 16 + (256 * 256) - 2048...either way, way more than we should ever need if we don't go nuts...as they point out, Unicode is for characters, not glyphs or fonts, so if there are 500 ways you want to write A, that is still just one code point...
@ComputerScienceLessons
@ComputerScienceLessons 3 года назад
To be honest, I think Unicode is one of those topics which, if you keep digging, you may well go nuts. I made a conscious decision not to overthink it (i.e. "tap dance"). Perhaps Unicode will prove inadequate if SETI ever come up with the goods. :)KD
@jvsnyc
@jvsnyc 3 года назад
@@ComputerScienceLessons Yeah, one thing that is unfortunate is that we went from a situation where almost everything "normally" used was in BMP, to one where lots of 🤦‍♂️🤷‍♂️🤞super-popular stuff ain't. Too bad!
@TheKurama9
@TheKurama9 3 года назад
23:15 that's the kind of nonchalant joke I like lmao
@ComputerScienceLessons
@ComputerScienceLessons 3 года назад
I couldn't resist :)KD
@dr.c2195
@dr.c2195 3 года назад
What is the joke? That he is using Notepad?
@sadBytes
@sadBytes 3 года назад
thanks a lot for the awesome explanation!
@ComputerScienceLessons
@ComputerScienceLessons 3 года назад
You're very welcome indeed :)KD
@kaos092
@kaos092 Год назад
So why is UTF16 the only standard not compatible with ASCII?
@obeid_s
@obeid_s 2 года назад
oh i thought UTF-16LE Order bytes will be for all 4 bytes .. but its only for 2 bytes-2bytes Thank you man ..
@ComputerScienceLessons
@ComputerScienceLessons 2 года назад
You're welcome :)KD
@EMEKC
@EMEKC 3 года назад
To be or not to be... good one! ;)
@ComputerScienceLessons
@ComputerScienceLessons 3 года назад
🤡 :)KD
@jefersonwillian5579
@jefersonwillian5579 3 года назад
Great lecture! I had a question: what is that weird characters we see on the Hex editor? Because Notepad recognizes the encoding used, while Hex editor doesn't.
@iparadoxg
@iparadoxg 3 года назад
Hex editor displays the raw data present on the file. It could have shown that to us in binary format too, but it displays that raw binary data to us in a simpler Hexadecimal format
@alexthegreek1085
@alexthegreek1085 3 года назад
Amazing video
@ComputerScienceLessons
@ComputerScienceLessons 3 года назад
Thanks a million :)KD
@charlesklein7232
@charlesklein7232 2 года назад
what web site do i get these things from? you talk about it 16:00 but were are they? how do i find them? what do i search for? this would make a good video.
@kqvanity
@kqvanity 3 года назад
may i know why this video got re-uploaded ; as if any you've any changes it would be useful for to spot
@ComputerScienceLessons
@ComputerScienceLessons 3 года назад
It was brought to my attention by one of my viewers that the bit sequence for the Greek letter Phi, in the table of UTF-8 values, did not match the bit sequence that was (correctly) derived below the table (thank you!). All of the other information was correct. I fixed the problem and took the opportunity to de-ess the sound at the same time :)KD
@NaifAlqahtani
@NaifAlqahtani 3 года назад
1:19 nice
@ComputerScienceLessons
@ComputerScienceLessons 3 года назад
🤐
@NaifAlqahtani
@NaifAlqahtani 3 года назад
@@ComputerScienceLessons 😂 great video as always 👍🏻
@NoName-tj8dm
@NoName-tj8dm 2 года назад
Dear Sir, I have tried to convert '€' , in pure binary It is 10000000 and in denary 128, to UTF-8 format. As It is 1 byte character but also starts with 1 . Hence I am confused how to convert it to UTF-8 format. Please help. Thanks in Advance.
@angeldude101
@angeldude101 2 года назад
It doesn't fit in 7 bits, so it's not 1 byte in UTF-8. It does however fit in 11 bytes, so it's a 2 byte codepoint. Pad to 11 bits and shove it in the two bytes with the proper headers 00010_000000 => 110_00010 10_000000
@olivercordingley776
@olivercordingley776 3 года назад
I am convinced that you are actually javidx9 in disguise
@ComputerScienceLessons
@ComputerScienceLessons 3 года назад
Nope - but I must admit - he looks a bit like me :)KD
@olivercordingley776
@olivercordingley776 3 года назад
@@ComputerScienceLessons Sounds similar as well haha
@eenteghadi
@eenteghadi Год назад
@24:05 UTF-8 encoding for Greek character Phi is 11001110 10100110 and not 11000011 10100110
@ComputerScienceLessons
@ComputerScienceLessons Год назад
That's a capital Phi in my video :)KD
@eenteghadi
@eenteghadi Год назад
@@ComputerScienceLessons I meant also capital letter. Or maybe I am missing sth. Capital Phi: U+03A6 and small letter Phi: U+03C6
@justcurious1940
@justcurious1940 2 года назад
4:56 in UTF-8 we have control bits which are necessary to identify the number of bytes used to represent a code point while in UTF-16 we don't have such thing because low and high surrogates are known by the the range of values so we can identify if a code point is encoded using 1 or 2 UTF-16 code units by just the range of values can some one correct me please ?
@justcurious1940
@justcurious1940 2 года назад
2🐝⊕¬2🐝?
@angeldude101
@angeldude101 2 года назад
@@justcurious1940 That doesn't look quite right... Did you mean to say 2🐝∨¬2🐝? Edit: oh, I guess that was the binary string showed in the video? Then it's possible the video did a typo or something.
@justcurious1940
@justcurious1940 2 года назад
@@angeldude101 did u convert it to binary unicode then to characters ?
@angeldude101
@angeldude101 2 года назад
@@justcurious1940 No, just noticed that ⊕ looked more like a direct/tensor sum than an or, so I just replaced it with the actual or symbol.
@justcurious1940
@justcurious1940 2 года назад
@@angeldude101 yea i see i think u have to it yourself because i couldn't find a website that does it directly
@ankitchabarwal6814
@ankitchabarwal6814 2 года назад
@23:18 "… the heart is broken" lol
@foo0815
@foo0815 2 года назад
And there are even more stupid encodings like Oracle's CESU-8, which mostly is UTF-8, but encodes chars outside the BMP as UTF-16 and then those surrogates *again* as UTF-8, so it becomes 6 bytes... WTF?
@ComputerScienceLessons
@ComputerScienceLessons 2 года назад
At one point in time, it was like the Wild West. :)KD
@justcurious1940
@justcurious1940 2 года назад
2🐝⊕¬2🐝?
@ComputerScienceLessons
@ComputerScienceLessons 2 года назад
THAT is the question! :)KD
@justcurious1940
@justcurious1940 2 года назад
@@ComputerScienceLessons i could not find an online website that convert UTF- 8 data to txt directly i had to convert them to unicode code points first then convert each code point to the corresponding character 😅
@rl_gamer15
@rl_gamer15 Год назад
U+0045
@ComputerScienceLessons
@ComputerScienceLessons Год назад
E
Далее
Byte Order (Endianness)
13:16
Просмотров 21 тыс.
Бокс - Финты Дмитрия Бивола
00:31
Unicode Encoding! UTF-32, UCS-2, UTF-16, & UTF-8!
24:52
Ep 020: Unicode Code Points and UTF-8 Encoding
19:07
Просмотров 39 тыс.
IEEE 754 Standard for Floating Point Binary Arithmetic
21:34
Digital Audio Explained
12:36
Просмотров 23 тыс.
Personal Computer Architecture
18:06
Просмотров 82 тыс.
How to Improve Blender's UI
20:27
Просмотров 12 тыс.