mossaab
mossaab

Reputation: 1824

Decoding escaped unicode

I am reading the following String from a file:

a \\u0645 b

I want to process is so that when it is printed to the console it looks like:

a م b

How can I do that?

Upvotes: 0

Views: 74

Answers (1)

Christian Kuetbach
Christian Kuetbach

Reputation: 16060

I think you will need to decode it two times. Try to use StringEscapeUtils.unescapeJava()

Upvotes: 1

Related Questions