How to convert native character to unicode and unicode to native?

Java provides a simple tool named native2ascii to convert native to ASCII and ASCII to native. Native characters are represented in ASCII using its Unicode equivalent. You can find the native2ascii tool in the JAVA_HOME/bin

To convert native to ascii you can use the below given command.

/local/opt/java/bin/native2ascii -encoding utf8 source-file target-file

source file should have native content. native2ascii tool will generate the ascii for the content and place it in the target file.

On the same way you can convert a ASCII file written in unicode to native using…

One thought on “How to convert native character to unicode and unicode to native?