[go-nuts] Re: URL parsing with special characters.

2020-05-01 Thread Vivek
Thanks everyone. I am using "github.com/jlaffaye/ftp" library which returned unescaped file names when doing directory listing. I constructed the full url by doing filePath = "ftp://user:pass@192.168.0.1/path/"; + "file%ver3.txt

Re: [go-nuts] Re: URL parsing with special characters.

2020-04-30 Thread Brian Candler
On Thursday, 30 April 2020 23:04:01 UTC+1, Ian Lance Taylor wrote: > > On Thu, Apr 30, 2020 at 11:09 AM Brian Candler > 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 a

Re: [go-nuts] Re: URL parsing with special characters.

2020-04-30 Thread Ian Lance Taylor
On Thu, Apr 30, 2020 at 11:09 AM Brian Candler 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 rathe

[go-nuts] Re: URL parsing with special characters.

2020-04-30 Thread Brian Candler
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. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group an