Java: Display unicode chars as chars when printing string

78 Views Asked by At

I have some code that retrieves a Wikipedia summary for a given query and it pulls the information from the Wikipedia JSON api. See the code here (gist.github.com). Wikipedia's API returns characters in this form: \u026al or \u0259 as well as \n. Right now when I print the output, something like the following is returned: Hillary Clinton (5043192): Hillary Diane Rodham Clinton (/\u02c8h\u026al\u0259ri da\u026a\u02c8\u00e6n \u02c8r\u0252d\u0259m \u02c8kl\u026ant\u0259n/; born October 26, 1947) is an American politician who.... How can I have the unicode characters be printed as such instead of printing their codes?

0

There are 0 best solutions below