summaryrefslogtreecommitdiff
path: root/dict.go
diff options
context:
space:
mode:
Diffstat (limited to 'dict.go')
-rw-r--r--dict.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/dict.go b/dict.go
index 11ad959..9721269 100644
--- a/dict.go
+++ b/dict.go
@@ -4,6 +4,7 @@ import (
"bufio"
"fmt"
"net/http"
+ "net/url"
"os"
"regexp"
"strings"
@@ -30,7 +31,7 @@ func main() {
fromto = os.Args[2] + "."
}
- r, err := http.Get("http://" + fromto + BASE + os.Args[1])
+ r, err := http.Get("http://" + fromto + BASE + url.QueryEscape(os.Args[1]))
if err != nil {
println("error:", err.Error())
return