0

Can anyone help to identify what is the below Unicode format? I am trying to convert my English text to Unicode in the below format only so that I can use the same in my java project.

\u0623\u0646\u062a \u0645\u0634\u062a\u0631\u0643 \u0639\u0628\u0631 \u0631\u0642\u0645

The above format is working fine, but I don't have the website details from where the same was done.

Exception
  • 571
  • 1
  • 3
  • 15
Mohit H
  • 927
  • 3
  • 11
  • 26

1 Answers1

0

Your question is not clear but if you just want to convert clear text into unicode sequences here is how you can do that:

There is an Open Source java library MgntUtils that has a Utility that converts Strings to unicode sequence and vise versa:

result = "Hello World";
result = StringUnicodeEncoderDecoder.encodeStringToUnicodeSequence(result);
System.out.println(result);
result = StringUnicodeEncoderDecoder.decodeUnicodeSequenceToString(result);
System.out.println(result);

The output of this code is:

\u0048\u0065\u006c\u006c\u006f\u0020\u0057\u006f\u0072\u006c\u0064
Hello World

The library can be found at Maven Central or at Github It comes as maven artifact and with sources and javadoc

Here is javadoc for the class StringUnicodeEncoderDecoder

Above is a copy of my answer for Convert International String to \u Codes in java

Disclaimer: The library is written and maintained by me

Michael Gantman
  • 7,315
  • 2
  • 19
  • 36