[useradmin] Support unicode characters in usernames
@@ -21,6 +21,7 @@ import threading
import urllib
from django.utils.encoding import iri_to_uri, smart_str
+from django.utils.http import urlencode
from desktop import conf
@@ -200,6 +201,6 @@ class HttpClient(object):
if path:
res += posixpath.normpath('/' + path.lstrip('/'))
if params:
- param_str = urllib.urlencode(params)
+ param_str = urlencode(params)
res += '?' + param_str
return iri_to_uri(res)
