Open DJphilomath opened 6 years ago
Example
ToCountry=US&Body=No%2C+I%E2%80%99m+ill+&FromCountry=US
Notice the + sign at the end of the Body param
After calling .parse the Body param is not decoded
.parse
{"ToCountry":"US","Body":"No%2C I%E2%80%99m ill ","FromCountry":"US"}
It works if the trailing + sign is at the end of the string
ToCountry=US&FromCountry=US&Body=No%2C+I%E2%80%99m+ill+
Once parsed
{"ToCountry":"US","FromCountry":"US","Body":"No, I’m ill "}
https://playcode.io/362931?tabs=script.js,preview,console
Everything works fine
Example
Notice the + sign at the end of the Body param
After calling
.parse
the Body param is not decodedIt works if the trailing + sign is at the end of the string
Once parsed