Skip to content

Commit 2a232a1

Browse files
author
Adrian Chang
committed
force utf8
1 parent 27c77b9 commit 2a232a1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libs/labelbox/src/labelbox/schema/export_task.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,7 @@ def _get_file_content(
236236
f"{self._ctx.stream_type.value} stream")
237237
response = requests.get(file_info.file, timeout=30)
238238
response.raise_for_status()
239+
response.encoding = 'utf-8'
239240
assert len(
240241
response.content
241242
) == file_info.offsets.end - file_info.offsets.start + 1, (

0 commit comments

Comments
 (0)