When special characters like `~!@#$%^&*()_ -=[]{}|;':”,./? are used as parameters, if they are not processed, the product will pass the parameters Error.
Workaround:
encodeURI method
encodes a text string into a valid Uniform Resource Identifier (URI). >encodeURI(URIString)
The required URIString parameter represents an encoded URI.
Description
The encodeURI method returns an encoded URI. If you pass the encoding result to decodeURI, the original string is returned. The encodeURI method does not encode the following characters: ":", "/", ";" and "?". Use the encodeURIComponent method for these characters. Encode.