×

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

Misc Operators in Java

In this article, we are going to learn about the misc operators in Java. Misc operators are nothing but the miscellaneous operators. The java programming language supports some of the...

4 minutes read.

Default Virtual Behaviour in C++ vs Java

Virtual Behaviour in C++: The class member methods in C++ are, by default, non-virtual. This implies that by simply defining it, they can be turned into virtual. The virtual class can be...

3 minutes read.

Java Arrays

An array is an object that stores a collection of values. An array can store two types of collection data: objects and primitives. An array is a collection of values which...

2 minutes read.

Java Project Ideas

When it comes to constructing projects, Java is regarded as one of the best languages and is also one of the most paid. Java excels in any application, whether it...

10 minutes read.

Dictionary in Java

Dictionary in Java The Dictionary class represents a key-value relation which maps keys to values. In Dictionary class, every key and every value is an object. It is an abstract class associated with...

2 minutes read.

Three-way operator in Java

The ternary operator in Java is the only conditional operator that takes three operands. It's a popular one-line substitute for the if-then-else expression among Java programmers. If-else clauses can be...

3 minutes read.

Package Program in Java

Package Program in Java The package program in Java helps us to understand the significance of packages in Java. Packages are mainly used to group together similar classes, interfaces and sub-packages....

6 minutes read.

How to Install Java on MAC

There are many possible ways to install java on mac. This article is based on the installation of java on mac. The operating system platform is Mac OS X, macOS and...

3 minutes read.

Java String Reader

StreamReaderClass: This class is present in the java.io package. It is a character stream in which string act as a source.This method provides to read characters from a string. Character Stream: This class...

3 minutes read.

How to Create Immutable Classes in Java

Introduction Java is a programming language that is entirely object-oriented, and everything in it is seen as an object. And the blueprint or template of these objects are classes. Several classes...

3 minutes read.

Hashtable in Java

Hashtable in Java The Hashtable class implements the Map interface and extends the Dictionary class. It implements a hash table which shows the key-value relation, i.e., it maps the keys to the values....

9 minutes read.

Java vs JavaScript

Java Vs JavaScript Java and JavaScript, both play an important role in the field of Computer Technology. Most people think JavaScript is a part of Java. But it is not entirely...

4 minutes read.

Java Integer parseUnsignedInt() method

The parseUnsignedInt() method of Java Integer class parses the string argument as an unsigned decimal integer. The second parameter parses the string argument as an unsigned integer in the radix specified...

2 minutes read.

XOR Binary Operator in Java

One of the various Bitwise operators in Java is ava XOR. If two boolean operands are given, the XOR (also known as exclusive OR) returns true. When both of the...

4 minutes read.

Method Overriding in Java

Overriding  Overriding is also known as run time polymorphism, and it is about the same method with the same signatures in different classes. Overriding can be applied only methods. Method Overriding Method Overriding...

8 minutes read.

Java Math toDegrees() Method

The toDegrees() method of Java Math class converts a radian angle to an approximately equivalent angle measured in degrees. Syntax: public static double toDegrees(double angrad) Parameters: The parameter ‘angrad ‘represents an angle measured in...

2 minutes read.

Best Java IDE

Applications for desktop, workplace, smartphone, and the internet can be created using Java, one of the most popular programming languages. Java will undoubtedly be a popular programming language for so...

5 minutes read.

ArrayList vs Vector in Java

ArrayList Vs. Vector in Java In Java, the two classes ArrayList and Vector both are associated with Java Collections Framework. Both classes implement java.util.List interface. Even so, these classes have noticeable...

4 minutes read.

Blocking Queue in Java Example

Let's first briefly comprehend queue before moving on to the topic of "Blocking Queue." A queue seems to be an orderly list of items in which elements are added from...

8 minutes read.

Java ResultSetMetaData

The data about another data is called Metadata. The ResultSetMetaData is used to store the data about ResultSet. The ResultSet Contains the columns, rows, names of table, datatypes etc. these...

2 minutes read.