Encoding Schemes for ISC Class 11: ASCII, ISCII, Unicode, UTF-8 and BCD
ISC Class 11 Computer Science notes on encoding schemes: why computers need character codes, ASCII and extended ASCII, ISCII for Indian scripts, Unicode code points, UTF-8 and UTF-16, and BCD, with worked conversions and Java examples.

A computer stores only 0s and 1s. To store text, every character (letter, digit, symbol or script character) must be given a number code, and that number is stored in binary. The rule that maps characters to codes is called an encoding scheme. This topic is part of the ISC Class 11 syllabus and appears as short theory questions.
ASCII
ASCII (American Standard Code for Information Interchange) uses 7 bits, so it can represent 2⁷ = 128 characters (codes 0–127). These include English letters, digits, punctuation and control characters such as newline.
Codes worth remembering:
- Space: 32
- '0' to '9': 48 to 57
- 'A' to 'Z': 65 to 90
- 'a' to 'z': 97 to 122
The difference between an uppercase letter and its lowercase form is always 32. For example, 'a' − 'A' = 97 − 65 = 32. That is why (char)(ch + 32) converts uppercase to lowercase.Extended ASCII uses 8 bits, giving 256 codes. Codes 128–255 hold extra symbols, but different systems used them differently, which caused problems when text moved between computers.
ISCII
ISCII (Indian Script Code for Information Interchange) is an 8-bit code developed in India. It keeps the ASCII characters in codes 0–127 and uses 128–255 for Indian scripts such as Devanagari, Bengali, Tamil and Gujarati. Its limitation is that one byte cannot hold all the world's scripts at once, a problem Unicode solves.
Unicode
Unicode gives a unique number, called a code point, to every character in every major script, plus symbols and emoji. Code points are written as U+ followed by hexadecimal digits:
- 'A' → U+0041 (65 in decimal, the same as ASCII)
- '₹' (rupee sign) → U+20B9
- 'क' (Devanagari KA) → U+0915
The first 128 Unicode code points are identical to ASCII, so ASCII text is valid Unicode.
UTF-8 and UTF-16
Unicode defines the code points. UTF-8 and UTF-16 define how those numbers are stored as bytes.
- UTF-8 uses 1 to 4 bytes per character. ASCII characters take just 1 byte, so UTF-8 is compact for English and fully compatible with ASCII. It is the standard encoding for web pages.
- UTF-16 uses 2 or 4 bytes per character. Java's
chartype holds one 16-bit UTF-16 unit.
Worked examples in UTF-8:
'A' U+0041 → 41 (1 byte)
'é' U+00E9 → C3 A9 (2 bytes)
'₹' U+20B9 → E2 82 B9 (3 bytes)
'क' U+0915 → E0 A4 95 (3 bytes)How '₹' becomes 3 bytes: U+20B9 needs 16 bits, so it uses the 3-byte pattern 1110xxxx 10xxxxxx 10xxxxxx. Fill in its bits, 0010 000010 111001:
1110 0010 | 10 000010 | 10 111001 → E2 82 B9BCD (Binary Coded Decimal)
BCD stores each decimal digit separately in 4 bits.
59 in BCD = 0101 1001
59 in binary = 111011BCD is used where decimal digits must be shown exactly, as on calculators and digital clocks. It wastes some space, because the 4-bit patterns 1010–1111 are never used.
Characters and codes in Java
char ch = 'A';
int code = ch; // 65 (implicit widening)
char next = (char) (ch + 1); // 'B'
char lower = (char) (ch + 32); // 'a'
char rupee = '\u20B9'; // Unicode escape for the rupee sign
System.out.println((int) 'a'); // 97Practice questions
- How many characters can 7-bit ASCII represent?
- What is the ASCII code of 'd'?
- Write 274 in BCD.
- Why does UTF-8 store English text in less space than UTF-16?
Answers:
- 128
- 'a' is 97, so 'd' is 97 + 3 = 100.
- 0010 0111 0100
- UTF-8 stores each ASCII character in 1 byte, while UTF-16 needs at least 2 bytes per character.
Continue with our ISC Class 11 Number Systems notes, which this topic builds on.
Related Posts
Continue learning with these related articles

Passing Objects to Methods in Java for ISC Class 12 (Object as Parameter and Return Type)
ISC Class 12 Computer Science notes on object passing: passing an object as a parameter, returning an object from a method, using this to access the current object, and a fully solved board-style Distance class program.

Arrays in Java for ISC Class 11: 1-D Arrays and 2-D Matrix Programs
ISC Class 11 Computer Science notes on arrays in Java: declaring 1-D and 2-D arrays, row-major and column-major address calculation, and solved matrix programs – transpose, boundary sum, diagonal sums and matrix multiplication – for theory and practicals.

Stack, Queue and Linked List in Java for ISC Class 12 (Notes and Programs)
ISC Class 12 Computer Science notes on data structures: stacks (LIFO) and queues (FIFO) using arrays with overflow and underflow, postfix evaluation, and singly linked lists – insert, traverse, count and search – with board-style Java programs.