I have to send characters like ü to the server as unicode character but as an ASCII-safe string. So it must be \u00fc
(6 characters) not the character itself. But after JSON.stringify
it always gets ü regardless of what I've done with it.
If I use 2 backslashes like \\u00fc
then I get 2 in the JSON
string as well and that's not good either.
Important constraint: I can't modify the string after JSON.stringify
, it's part of the framework without workaround and we don't want to fork the whole package.
Can this be done? If so, how?