Unicode System in JAVA

Languages like C and C++ were using

  • ASCII (American Standard Code for Information Interchange) for the United States.
  • ISO 8859-1 for Western European Language.
  • KOI-8 for Russian.
  • GB18030 and BIG-5 for Chinese, and so on.

So the problem was the character standard system allocates 1 byte for a character which was not capable of handling more than one language support in programming.

For Ex. ASCII Values and English Characters:

ascii-table-cheat-sheet

SOLUTION:

JAVA as an Internet programming language had to support languages around the globe. To do so the character set had to be increased. On increasing a character set the number of bits used to store the data also increased. To accommodate the characters of all languages in JAVA, a character is allocated 2 bytes following a UNICODE system.

Format of UNICODE system:

lowest value:\u0000
highest value:\uFFFF

unicode table

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s

Powered by WordPress.com.

Up ↑

%d bloggers like this: