From 1e179b5694b74a2e511a9e7ac44fd877f1492af0 Mon Sep 17 00:00:00 2001 From: steffnay Date: Fri, 18 Mar 2022 10:20:11 -0700 Subject: [PATCH 1/2] update content-type header --- google/cloud/bigquery/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/google/cloud/bigquery/client.py b/google/cloud/bigquery/client.py index a5f3d5419..161273094 100644 --- a/google/cloud/bigquery/client.py +++ b/google/cloud/bigquery/client.py @@ -4127,7 +4127,7 @@ def _get_upload_headers(user_agent): "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "User-Agent": user_agent, - "content-type": "application/json", + "content-type": "application/json; charset=UTF-8", } From 561d2feca25c4d8efbd5567c62394196ba36189d Mon Sep 17 00:00:00 2001 From: steffnay Date: Fri, 18 Mar 2022 10:20:11 -0700 Subject: [PATCH 2/2] fix: update content-type header --- google/cloud/bigquery/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/google/cloud/bigquery/client.py b/google/cloud/bigquery/client.py index a5f3d5419..161273094 100644 --- a/google/cloud/bigquery/client.py +++ b/google/cloud/bigquery/client.py @@ -4127,7 +4127,7 @@ def _get_upload_headers(user_agent): "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "User-Agent": user_agent, - "content-type": "application/json", + "content-type": "application/json; charset=UTF-8", }