This is a basic question and yet I could not find an exact duplicate on SA:
I have this string:
String s = "surname\":\"B\\u00f6rner\"},{\"forename\""
What I’d like to get is:
String s = "surname\":\"Börner\"},{\"forename\""
Any way to do this in Java? Thx!
Removing the backslash manually will make Java interpret the unicode as such. If you are unable to modify the string that you receive from the API call, you can use: