Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Insert from JSON containing strings with non-ascii characters are escaped as unicode for lists, tuples, dicts. #257

dylan-wu opened this issue Apr 26, 2021 · 0 comments


Copy link

JSON Test File (test.json):

        "id": 123,
        "text": "FR Théâtre"
        "id": 223,
        "text": [
            "FR Théâtre"

Command to import:

sqlite-utils insert test.db text test.json --pk=id

Resulting table view from datasette:


Original, line 2225:

        return json.dumps(value, default=repr)

Fix, line 2225:

        return json.dumps(value, default=repr, ensure_ascii=False)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
None yet

No branches or pull requests

2 participants