Skip to content

Bug: JSON formatter escapes non-ASCII characters #8

Open

Description

@codepiyusss

Description

format_json('{"name": "café"}') outputs caf\u00e9 instead of café.

Where

fixit/jsonfmt.py

Acceptance criteria

  • Unicode characters are preserved
  • A new test covers this case

How to contribute

Comment on this issue to claim it, then follow CONTRIBUTING.md. If a related xfail test exists, remove its marker in your PR.

Activity

  1. dbdefault commented on Oct 21, 2026

    @dbdefault

    I'd like to work on this issue if it is still available. I would preserve non-ASCII characters in format_json with ensure_ascii=False, add focused Unicode regression tests, and remove the related xfail marker if applicable. This would be AI-assisted, with the test results and limitations clearly reported. I'll wait for assignment before implementing, in line with CONTRIBUTING.md.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething returns a wrong resulteasyEasy difficultygood first issueGood for newcomers

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions