URL encoding: Difference between revisions

→‎{{header|Go}}: library change
(→‎{{header|AutoHotkey}}: AutoHotkey example added)
(→‎{{header|Go}}: library change)
Line 110:
 
import (
"fmt"
"url"
"http"
"strings"
)
 
func main() {
url := http fmt.Println(url.URLEscapeQueryEscape("http://foo bar/"))
// http.URLEscape replaces ' ' with '+', so:
url = strings.Replace(url, "+", "%20", -1)
fmt.Println(url)
}</lang>
 
1,707

edits