×

Unicode System in Java

In this tutorial, we will understand the meaning and emergence of the Unicode system in java. The Unicode system is one of the important and useful features in the world of programming. So, we will try to understand it precisely. We will have a glance at its utility in the programming world. We will see a list of Unicode values along with their description.

Understanding the term

Unicode stands for universal international standard character encoding. It is capable of representing a large of written languages around the globe. It represents digits, alphabets both uppercase and lowercase, and, special characters.

As we know computers understand numbers, so our inputs get coded in certain languages that computers can easily understand.

The Unicode system assigns a unique number to each character which is independent of the platform, and language. It is the standard language.

Unicode is not the first system of encoding to be used. Before this, many other systems were being used such as –

  • SO 8859-1 for Western European Language.
  • KOI-8 for Russia
  • ASCII for the United States of America

These earlier systems had certain limitations which resulted in the new system i.e Unicode system.

The two major limitations include the following:

  1. A specific code value links to different letters in many language standards.
  2. The encodings for languages with huge character sets have variable lengths. Some common characters are encoded as single by others who require two or more bytes.
  3. Limitation in size. Those are capable of encoding up to a certain capacity which is less for the technically growing era.

The Unicode system solves the above problems and it holds characters of size 2 bytes and java too, the size of the character is 2 bytes.

Unicode is capable of handling 10,000 characters whereas ASCII values can handle only 128 characters.

The Unicode value is capable of storing all the existing texts and also the forthcoming ones.

Unicode values are needed for the standardization of texts.

Here, The range of Unicode values starts from \u0000 and ends at \uFFFF. Thus, we can say that \u0000 is the lowest or the smallest Unicode value and \uFFFF is the highest Unicode value.

Example

Now, let us have a look at examples to understand the concept even better.

Unicode         Char   Description

U+0000          ^@      Null character

U+0001          ^A       Start of heading (it is not the alphabetic A)

U+0002          ^B       Start of text(it is not the B of alphabets)

U+0003          ^C       End of text

U+0004          ^D       End of transmission

U+0005          ^E        Enquiry

U+0006          ^F        Acknowledge

U+0007          ^G       Bell 

U+0008          ^H       Backspace

U+0009          ^I         Horizontal tab 

U+000A          ^J        Line feed 

U+000B          ^K        Vertical tab

U+000C          ^L        New page

U+000D          ^M      return of Carriage

U+000E          ^N       Shift out 

U+000F          ^O       Shift in

U+0010          ^P        Data link escape 

U+0011          ^Q       Device Control 1 

U+0012          ^R       Device Control2 

U+0013          ^S        Device Control3 

U+0014          ^T        Device Control4 

U+0015          ^U       Negative acknowledge

U+0016          ^V       Synchronous idle 

U+0017          ^W      End of the transmission block 

U+0018          ^X        Cancel

U+0019          ^Y        End of medium

U+001A          ^Z        Substitute

U+0030          0          Numeric Digit zero

U+0031          1          NumericDigit one

U+0032          2          NumericDigit two

U+0033          3          NumericDigit three

U+0034          4          NumericDigit four

U+0035          5          NumericDigit five

U+0036          6          NumericDigit six

U+0037          7          NumericDigit seven

U+0038          8          NumericDigit eight

U+0039          9          NumericDigit nine

U+003A          :           Colon

U+003B          ;           Semicolon

U+003C          <          Less-than sign

U+003D          =          Equal/Equality sign

U+003E          >          Greaterthan sign

U+003F          ?          Question mark

Summary

In this tutorial, we tried to understand the meaning of the Unicode system in java. We saw its evolution, need, and usage. We understood the facts about this system. Further, we had a glimpse of certain Unicode values starting from 0.


Related Topics

DatabaseMetaData in Java

The Data about another data is called Meta data. The DatabaseMetaData interface has the meta data of the database present in the system. It consists of database product name, total...

2 minutes read.

Java Try-Catch Block

Java Try Block The handling of the exceptions in a block of code is done with the help of java try block. It throws the code that is enclosed in a...

3 minutes read.

How to remove last character from String in Java

In java, there are predominantly three classes connected with the string. The classes are String, StringBuilder, and StringBuffer class that gives techniques connected with string control. Eliminating the first and...

5 minutes read.

Java Delete File

There are two techniques to erase a record in Java: Utilizing File.delete() technique.Utilizing File.deleteOnExit() technique. Using File.delete() technique: In Java, we can erase a document by utilizing the File.delete() technique for File class....

2 minutes read.

Java InputStreamReader

What is InputStreamReader?An InputStreamReader is a converter between byte and character streams: It reads bytes and converts them to characters with the help of a charset. The charset it uses can...

4 minutes read.

Undo and Redo Operations in Java

Undo and redo operation are the most widely used operation while dealing with file. In this section, we will discuss how to implement undo and redo operation in Java. Undo Redo...

2 minutes read.

StringBuilder in Java

StringBuilder in Java Java StringBuilder class is introduced since JDK 1.5. The StringBuilder class is mainly used to create modifiable or mutable strings. Note that the StringBuilder class is not synchronized....

7 minutes read.

What is advance Java?

The definition of advance inside the dictionary refers to a forward motion, development, or progress, and the definition of enhancing is something that improves things. To become experts in that...

3 minutes read.

Split String into String Array in Java

The String split() technique returns a variety of divided strings after the strategy parts the given String around matches of a given normal articulation containing the delimiters. The ordinary articulation...

4 minutes read.

JDBC Program in Java

JDBC Program in Java JDBC is an API that defines how a client may access a database. It is a part of Java Standard Edition (Java SE). JDBC stands for Java...

4 minutes read.

How to convert double to String in Java

How to Convert double to String in Java It is used when we want to convert double primitive to String type. There are two methods to convert double to String. Using String.valueOf()...

2 minutes read.

Java Try Resource

In Java, a try argument that specifies one or more resources is known as a try-with-resources statement. When your program is finished utilizing an object, it must be closed, which...

4 minutes read.

Java Integer valueOf() method

The valueOf() method of Java Integer class returns an Integer object holding the specified int value. The second method returns an Integer object holding the specified String value. The third syntax returns...

2 minutes read.

Java String subSequence() method

This method returns a new character sequence i.e. subsequence of current sequence Syntax: public CharSequence subSequence(int beginIndex, int endIndex) Parameter: beginIndex ? begin index, inclusive. endIndex ? end index, exclusive. Return: specified subsequnce Throws: It throws IndexOutOfBoundsException...

1 minute read.

How to uninstall the Java in Ubuntu

We need java on our computers in our daily lives because there are lots of different applications that are developed using the java environment, so we have to install java...

4 minutes read.

Java Buffer Reader

When a variable cannot change its value during run time is called a Static way of programming. In this programming, a variable is directly assigned to a value. Program: Import java.io.*; class  A {  ...

4 minutes read.

Null Pointer Exception in Java

It is a runtime error exception. The null value is allocated to the object reference in this exception. We will explicitly throw this null pointer exception when the program wants...

3 minutes read.

Design of JDBC

Java applications may interface using database systems from many vendors using the Java Database Connectivity (JDBC) Application Software Interface (API) from Sun Microsystem. To connect spreadsheets, JDBC and database drivers...

3 minutes read.

Java Swing

Java Swing is the extension of Abstract Windows Toolkit (AWT). Any component designed in Swing will appear the same on any platform. Problems/Disadvantage of Abstract Windows Toolkit (AWT): As we know that...

27 minutes read.

Java CountDownLatch

Another crucial classes for concurrent execution is CountDownLatch. It is a synchronisation tool that enables one or more threads to await until a series of tasks started by another thread...

4 minutes read.