Skip to content

fix: preserve non-ASCII characters in format_json (#8) - #66

Merged
codepiyusss merged 1 commit into
codepiyusss:mainfrom
marupakalaharsith20-beep:fix-json-unicode
Oct 26, 2026
Merged

codepiyusss merged 1 commit into
codepiyusss:mainfrom
marupakalaharsith20-beep:fix-json-unicode

Conversation

@marupakalaharsith20-beep

Copy link
Copy Markdown
Contributor

Summary

Fixes #8 by setting \ensure_ascii=False\ in \json.dumps()\ within \ ormat_json(). Previously, non-ASCII characters such as \café\ were escaped into Unicode escape sequences like \caf\u00e9.

Changes

  • Updated \ ormat_json\ in \ ixit/jsonfmt.py\ to pass \ensure_ascii=False\ to \json.dumps.
  • Added unit test \ est_format_json_preserves_unicode\ in \ ests/test_jsonfmt.py.

Closes #8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: JSON formatter escapes non-ASCII characters

2 participants