Mercurial > libervia-web
diff libervia/server/utils.py @ 1224:62bf4f87c249
server: some encoding fixes following python 3 port
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 06 Oct 2019 22:21:13 +0200 |
parents | b2d067339de3 |
children | 987595a254b0 |
line wrap: on
line diff
--- a/libervia/server/utils.py Sun Aug 25 12:16:34 2019 +0200 +++ b/libervia/server/utils.py Sun Oct 06 22:21:13 2019 +0200 @@ -28,7 +28,7 @@ def quote(value, safe="@"): """shortcut to quote an unicode value for URL""" - return urllib.parse.quote(value.encode("utf-8"), safe=safe) + return urllib.parse.quote(value, safe=safe) class ProgressHandler(object):