Minor bug fix to correctly deal with unicode queries with -d

This commit is contained in:
Bernardo Damele
2010-05-28 11:32:10 +00:00
parent 655bd79fc4
commit f26de89216
2 changed files with 8 additions and 0 deletions

View File

@@ -100,3 +100,9 @@ def urlencode(string, safe=":/?%&=", convall=False):
result = urllib.quote(string, safe)
return result
def utf8encode(string):
return string.encode("utf-8")
def utf8decode(string):
return string.decode("utf-8")