Skip to content

Commit c841830

Browse files
committed
Fix unicode handling again
1 parent 3a4df66 commit c841830

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clever/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def __call_api(self, resource_path, method,
121121
for k, v in path_params:
122122
# specified safe chars, encode everything
123123
resource_path = resource_path.replace(
124-
'{%s}' % k, quote(str(v), safe=config.safe_chars_for_path_param))
124+
'{%s}' % k, quote(v.encode('utf-8'), safe=config.safe_chars_for_path_param))
125125

126126
# query parameters
127127
if query_params:

override/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def __call_api(self, resource_path, method,
121121
for k, v in path_params:
122122
# specified safe chars, encode everything
123123
resource_path = resource_path.replace(
124-
'{%s}' % k, quote(str(v), safe=config.safe_chars_for_path_param))
124+
'{%s}' % k, quote(v.encode('utf-8'), safe=config.safe_chars_for_path_param))
125125

126126
# query parameters
127127
if query_params:

0 commit comments

Comments
 (0)