3 ms·
Relatedly, if you want to impress people with the ability to "read binary", and you know that something is plain ASCII text represented in binary, just look at
by schoen 10y ago
Relatedly, if you want to impress people with the ability to "read binary", and you know that something is plain ASCII text represented in binary, just look at the rightmost 5 bits of every byte. They will be the ordinal position of the letter.
"Hello" is
01001000 8 (h)
01100101 5 (e)
01101100 12 (l)
01101100 12 (l)
01101111 15 (o)
And when you see all zeroes, it's probably 00100000, the space character.
- pc86 10y agoIf 01001000 is 'h' what is 01101000?
- d4l3k 10y ago01001000 is 'H' and 01101000 is 'h'
- Jarwain 10y agoI think 01001000 was supposed to be 'H'
- komali2 10y ago01001000 is H 01101000 is h http://www.asciitohex.com/ http://www.asciitohex.com/ try and play around with it, it's fun.
- schoen 10y agoI deliberately wrote the "h" in lowercase, even though the ASCII character is uppercase, because I was advising looking only at the five least-significant bits, which won't tell you the case. Sorry for the confusion.
- pc86 10y agoGood clarification thank you :)
- deleted 10y ago[deleted]
- alblue 10y agoI did a talk at the DocklandsLJC on the history of Unicode, and covered the reason for the bit patterns in ASCII. The video was recorded and is available at http://www.docklandsljc.co.uk/2016/06/unicode-cuddly-application-server.html http://www.docklandsljc.co.uk/2016/06/unicode-cuddly-applica... The specific slide regarding ASCII code points is here: https://speakerdeck.com/alblue/a-brief-history-of-unicode?slide=6 https://speakerdeck.com/alblue/a-brief-history-of-unicode?sl...
- kalleboo 10y agoAha, THAT explains ^H, ^C, ^D, ^[ and so forth. I can't believe this eluded me for so long