I want to build a URL that can be opened on the user's PC via STRPCCMD. It will contain a query parameter containing special characters, so I need to URL encode the value of that parameter when building the URL e.g. "&% to %22%26%3F
We are still on it i7.2 so we don'thave systools urlEncode(), so I tried HTTPAPI's http_urlEncode()
Which worked apart from one thing. It encodes £ as %A3 instead of %C2%A3. Which doesn't work with the modern JavaScript methods of parsing URL query params e.g. decodeURIComponent() or URLSearchParams()
Am I doing something wrong?
We are still on it i7.2 so we don'thave systools urlEncode(), so I tried HTTPAPI's http_urlEncode()
Which worked apart from one thing. It encodes £ as %A3 instead of %C2%A3. Which doesn't work with the modern JavaScript methods of parsing URL query params e.g. decodeURIComponent() or URLSearchParams()
Am I doing something wrong?
Comment