L013 | ASCII Code Explained | Class 9th | ICSE | Computer Applications | Java
L014 | Unicode Explained | ASCII vs Unicode | Class 9th | ICSE | Computer Applications | Java
Character Set refers to the collection of characters that a programming language can recognize and process. In Java, characters include letters, digits, punctuation marks, special symbols, and control characters. Every character has a unique code, enabling computers to store and manipulate text.
Different character sets are used in computing to represent a wide range of characters from various languages and symbols. The most common ones include:
!, @, #, %)ASCII stands for American Standard Code for Information Interchange and is primarily used to encode English characters. ASCII assigns a unique numerical code to each character, which is stored in binary form.
A to Z corresponds to codes 65 to 90.a to z corresponds to codes 97 to 122.0 to 9 corresponds to codes 48 to 57.!, ?, @, and others, have unique codes.Example: In ASCII,
A is represented by the binary code 1000001 (decimal 65).a is represented by 1100001 (decimal 97).While ASCII is sufficient for English text, it lacks the capability to represent characters from other languages.
Unicode was developed to overcome the limitations of ASCII by creating a universal standard for encoding text, encompassing nearly every written language, symbol, and emoji. It assigns a unique code to each character across all scripts, making it ideal for international applications.
A in Unicode is U+0041, where U+ denotes a Unicode code point.