Hi everyone, I have an object with a value that has spaces in it, and it gets replaced with an encoded string, like:
alldata["test"]
will return "Long+name"
or something like
alldata["test"]
will return "%BLong+name%B"
when it's set by using
alldata["test"] = "Long name"
(or "[Long name]") via a series of code.
Am I missing something? I don't think using $.toEvalJSON
is the right way to go because I haven't transformed the object into JSON. I'd rather not do a string.replace either because I'd have to capture every possible type of input that is encoded.
Thank you!