L013 | ASCII Code Explained | Class 9th | ICSE | Computer Applications | Java

L014 | Unicode Explained | ASCII vs Unicode | Class 9th | ICSE | Computer Applications | Java

Character Set in 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.

Types of Character Sets

Different character sets are used in computing to represent a wide range of characters from various languages and symbols. The most common ones include:

  1. ASCII (American Standard Code for Information Interchange):
  2. Extended ASCII:

ASCII Code

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.

Example: In ASCII,

While ASCII is sufficient for English text, it lacks the capability to represent characters from other languages.

Unicode (Universal Character Encoding Standard)

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.