Skip to content

Commit 5e7c839

Browse files
Fix UnicodeDecodeError in print_requests.py on systems with ASCII locale
Open out.requests.txt with explicit utf-8 encoding to handle non-ASCII characters in request bodies. Co-authored-by: Isaac
1 parent 6513dd1 commit 5e7c839

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

acceptance/bin/print_requests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ def main():
168168
if not requests_file.exists():
169169
sys.exit(f"File {requests_file} not found")
170170

171-
with open(requests_file) as fobj:
171+
with open(requests_file, encoding="utf-8") as fobj:
172172
data = fobj.read()
173173

174174
if not data:

0 commit comments

Comments
 (0)