When opening the json url in a browser I get B\u00fcro instead of Büro.
Most of the time you can restore any escape sequence, including those in URL encoded and Unicode encodings, using a combination of JSON.parse and decodeURIComponent.
- Code: Select all
var testStr = "B\\u00fcro";
var testStrDecoded = decodeURIComponent(JSON.parse('"' + testStr + '"'));
var res = "Original: " + testStr + "<br/>Decoded Value: " + testStrDecoded;
Original: B\u00fcro
Decoded Value: Büro
Adam