Skip to content

Support for non ascii #293

@minmin2104

Description

@minmin2104

Hi, I was using botasaurus when I notice it doesn't properly output my french character to the json file. I did some reading and found this in utils.py

def write_json(data, path,  indent=4):
    with open(path, 'w', encoding="utf-8") as fp:
        json.dump(data, fp, indent=indent)

Afaik, json dump function has an option to modify ensure_ascii to either False or True. is there a feature of this that I didn't found? if no, can I create a PR to have the option of modifying ensure_ascii?

Thanks in advance

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions