Skip to content

Commit bd4a833

Browse files
committed
Fix conversion script for degree symbol etc
1 parent bdf646a commit bd4a833

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

convert_components_to_json.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -268,12 +268,12 @@ def convert_components_to_json():
268268

269269
# Write the consolidated JSON file
270270
with open(OUTPUT_FILE, 'w') as f:
271-
json.dump({"components": components}, f, indent=2)
272-
271+
json.dump({"components": components}, f, ensure_ascii=False, indent=2)
272+
273273
# Write the consolidated JS file
274274
with open(OUTPUT_FILE.replace('.json', '.js'), 'w') as f:
275275
f.write("window.jsonComponentsObject = ")
276-
json.dump({"components": components}, f, indent=2)
276+
json.dump({"components": components}, f, ensure_ascii=False, indent=2)
277277
f.write(";\n")
278278

279279
print(f"Successfully created {OUTPUT_FILE}")

0 commit comments

Comments
 (0)