streaming_url_updator
The server in question, in that specific function, does not use UTF-8 but the default encoding. When the server changes the use of latin-1 encoding, fix this line. (streaming_url_updator.py)
@cf5c8ac8fb2e4ac63409d4c3f18a8a7c5d176059
--- streaming_url_updator.py
+++ streaming_url_updator.py
... | ... | @@ -47,7 +47,8 @@ |
47 | 47 |
|
48 | 48 |
payload = df.T.to_dict() |
49 | 49 |
payload = list(payload.values()) |
50 |
- payload = json.dumps(payload, indent=2)#, ensure_ascii=False) # the server in question is not using UTF-8, change it when it does. |
|
50 |
+ payload = json.dumps(payload, indent=2) |
|
51 |
+ #, ensure_ascii=False) # the server in question is not using UTF-8, change it when it does. |
|
51 | 52 |
response = requests.post(API_ENDPOINT, headers=headers, data=payload) |
52 | 53 |
print_request(response) |
53 | 54 |
|
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?