윤영준 윤영준 05-30
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
+++ streaming_url_updator.py
@@ -47,7 +47,8 @@
 
     payload = df.T.to_dict()
     payload = list(payload.values())
-    payload = json.dumps(payload, indent=2)#, ensure_ascii=False) # the server in question is not using UTF-8, change it when it does.
+    payload = json.dumps(payload, indent=2)
+    #, ensure_ascii=False) # the server in question is not using UTF-8, change it when it does.
     response = requests.post(API_ENDPOINT, headers=headers, data=payload)
     print_request(response)
 
Add a comment
List