[zsh] urlencode: work with non unicode input
This commit is contained in:
parent
be6c0d6231
commit
36a56f2a0c
|
@ -149,7 +149,7 @@ function currency() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function urlencode() {
|
function urlencode() {
|
||||||
python3 -c 'import urllib.parse, sys;print(urllib.parse.quote(sys.stdin.read()))'
|
python3 -c 'import urllib.parse; print(urllib.parse.quote(open(0, "rb").read()))'
|
||||||
}
|
}
|
||||||
|
|
||||||
# Program aliases/env
|
# Program aliases/env
|
||||||
|
|
Reference in a new issue