2.5
Text encoding: ASCII and Unicode (2.5) is a Class 9 Computer Science lesson for the Punjab boards. It walks through the idea in plain steps, then sets a short check, in English, Urdu or Roman Urdu.
Your guide: Miss HiraExplains computers with chai, cricket and your phone.
Chapter 1 of every subject is free. Unlock every chapter of this class with the full course.
Unlock full courseAlready paid? Sign in with the Google account you paid with.
ASCII (American Standard Code for Information Interchange) gives each letter, digit and symbol a 7-bit code from 0 to 127. Examples: 'A' = 65, 'P' = 80, 'a' = 97, space = 32. Extended ASCII uses 8 bits for 256 characters.
Unicode aims to cover every writing system, over a million characters, so Urdu, Arabic and Chinese can be stored too. It has three forms: UTF-8 (1–4 bytes, backward compatible with ASCII), UTF-16 (2 or 4 bytes) and UTF-32 (always 4 bytes).
Urdu 'be' is U+0628: in UTF-8 it takes 2 bytes (11011000 10101000); in UTF-16 also 2 bytes (00000110 00101000). 'A' (U+0041) takes 1 byte in UTF-8 and 4 bytes in UTF-32.
Step 1 / 1
ASCII (American Standard Code for Information Interchange) gives each letter, digit and symbol a 7-bit code from 0 to 127. Examples: 'A' = 65, 'P' = 80, 'a' = 97, space = 32. Extended ASCII uses 8 bits for 256 characters.
Unicode aims to cover every writing system, over a million characters, so Urdu, Arabic and Chinese can be stored too. It has three forms: UTF-8 (1–4 bytes, backward compatible with ASCII), UTF-16 (2 or 4 bytes) and UTF-32 (always 4 bytes).
Urdu 'be' is U+0628: in UTF-8 it takes 2 bytes (11011000 10101000); in UTF-16 also 2 bytes (00000110 00101000). 'A' (U+0041) takes 1 byte in UTF-8 and 4 bytes in UTF-32.
ASCII: 128 characters, 7 bits. Unicode: all languages.
Found a mistake? Tell us the lesson and the line at exciting@boringeducation.com.
No ads. Tell us what to fix.