I am trying to parse a url similar to "ftp://user:pa...@192.168.0.1/path/file%ver3.txt" using `net/url` Parse function but I am getting a error`parse "ftp://user:pa...@192.168.0.1/path/file%ver3.txt": invalid URL escape "%ve"`
On Thu, Apr 30, 2020 at 11:09 AM Brian Candler <b.ca...@pobox.com> wrote:
>
> In a URL, the percent sign should appear as %25 (% marks the start of a hex-encoded character)
> https://play.golang.org/p/gMC1tdpJER4
>
> The URL as shown is invalid.
I *think* you are saying that the u.Path field should use %25 rather
than plain %.