I have a string that could look something like this: \u1234hello\u1234\u1234. I’d like to convert all the Unicode fragments of the string into their actual characters.
In Python, I’d just stick a u beforehand to specify that it’s a Unicode string but how can I do this in Javascript?
Cheers
Gausie
In JavaScript, all strings are Unicode. No
uprefix is necessary, and all\uescapes will be recognized.