json-simple retrieving unwanted characters

40 Views Asked by At

I am trying to access a json array using json-simple dependency

productObject.get("description")

productObject is a jsonObject .

Gives me "Bhadohi, the ‘Carpet city of India’" unwanted characters .

In the json file it is "Bhadohi, the ‘Carpet city of India’"

how can I get the actual value as it is in the file.

1

There are 1 best solutions below

0
On

Change the IDE encoding to UTF-8 . This solved my problem .