Skip to content

Commit a1fae8b

Browse files
committed
json.dump does not handle utf-8 correct by default
1 parent 28a9af7 commit a1fae8b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/inspect_tls_fed_metadata.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,10 @@ def main(args: argparse.Namespace):
7676
for item in metadata.get("entities", []):
7777
if item.get("entity_id") == args.entity:
7878
print(f"Entity ID: {args.entity}")
79-
print(json.dumps(item, indent=2))
79+
print(json.dumps(item, indent=2, ensure_ascii=False))
8080
else:
8181
# print full metadata
82-
print(json.dumps(metadata, indent=2))
82+
print(json.dumps(metadata, indent=2, ensure_ascii=False))
8383
print()
8484

8585

0 commit comments

Comments
 (0)