In order to send characters like ü to the server as unicode characters but in an ASCII-safe string format, I need them to be represented as \u00fc
with 6 characters, rather than displaying the character itself. However, no matter what I try, after using JSON.stringify
, it always reverts back to displaying ü.
If I attempt to input 2 backslashes like \\u00uc
, then the JSON string will also display 2 backslashes which is not ideal.
An important limitation: I am unable to modify the string after using JSON.stringify
due to it being a part of the framework without any available workarounds or options to fork the entire package.
Is there a way to achieve this? If so, how can it be done?