ring-codec icon indicating copy to clipboard operation
ring-codec copied to clipboard

Documentation could explain the difference between url-encode and form-encode

Open timrobinson33 opened this issue 2 years ago • 2 comments

url-encode and form-encode have very different implementations but seem to do almost the same thing - the only practical difference I have seen is that url-encode does not encode "+" which means it's not suitable for encoding URLs (so I'm not sure what it is useful for!). Note that JavaScript's encodeURIComponent does encode "+"

I'm sure this has caused confusion and possibly coding errors in the past - it would be useful to expand the documentation to explain when you would use one as opposed to the other

timrobinson33 avatar Jan 11 '23 13:01 timrobinson33