simonw / datasette-pretty-json

Datasette plugin that pretty-prints any column values that are valid JSON objects or arrays
Apache License 2.0
11 stars 1 forks source link

Make datasette-pretty-json show Chinese characters by default. #5

Open mpr1255 opened 7 months ago

mpr1255 commented 7 months ago

I was getting escaped Chinese character sequences (e.g. \u4f60\u597d instead of 你好).

Adding ensure_ascii=False to the json dump to fix this.

Tested & confirmed. I just edited the

/opt/homebrew/lib/python3.11/site-packages/datasette_pretty_json/__init__.py file.

Very simple change. Easy to upstream. Thank you!