Skip to content

[REQUEST]Printing Chinese characters in dictionary only shows me \u1234 when using print_json #1638

@alexzms

Description

@alexzms

How would you improve Rich?
when a dict contains strings which contains Chinese characters, and i use print_json(data = dict) to print that, all of the Chinese characters are turned to somthing like \u1234, while using the standard print() function, i can use ensure_ascii = False in json.dumps() to avoid that problem, but it seems like print_json does not provide such parameter or there is way to solve that.

What problem does it solve for you?

To print Chinese characters in jsons when using print_json

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions