You type "Eid Mubarak" into a message, then the same greeting in Bangla, and press send. A fraction of a second later it shows up on a phone in Rangpur. That phone has no letters inside it, only switches that are on or off. Somewhere along the way every letter you typed, and every digit of the amount on a bKash receipt, was turned into a pattern of 0s and 1s, and at the other end it was turned back.
Most days this is invisible. Then one day you open a Bangla file and see বাংলা where the word বাংলা should be, or a row of question marks. Nothing is broken. The sender and the reader simply used two different tables to translate between letters and bits. This chapter is about those tables: which ones exist, why there is more than one, and how to read them.
By the end you will write a decimal number in BCD and add two BCD numbers, and say why BCD exists at all. You will find the ASCII code of any letter or digit without a table, and explain why a capital and its small letter always differ by exactly 32. You will add a parity bit to a word, say what parity can and cannot catch, and tell EBCDIC from ASCII. You will write, compile and run the C program that changes the case of a string. And you will explain how Unicode and UTF-8 store Bangla, count the bytes of a Bangla word, and say what Bijoy, Avro and the national keyboard each really are.
We go in six parts, from easy to hard: what a code is and how BCD codes decimal digits; ASCII; parity and EBCDIC; the case-change program in C; Unicode; and Bangla in Unicode, with the keyboards we type it on.