diff --git a/silk/code_generation/curl.py b/silk/code_generation/curl.py index 4245fa10..9a754ab9 100644 --- a/silk/code_generation/curl.py +++ b/silk/code_generation/curl.py @@ -22,7 +22,7 @@ def _curl_process_params(body, content_type, query_params): modifier = None if query_params: try: - query_params = urlencode(query_params) + query_params = urlencode([(k, v.encode('utf8')) for k, v in query_params.items()]) except TypeError: pass query_params = '?' + str(query_params)