sqlite-utils/sqlite_utils
Charlie Tonneslan 4bfb53aae3
cli: output JSON without escaping non-ASCII characters
Closes #625.

json.dumps defaults to ensure_ascii=True, so output_rows emitted
'\u65e5\u672c\u8a9e' instead of '日本語' for Japanese.
The CSV path already shows the characters verbatim - the JSON path
should too. Pass ensure_ascii=False so the bytes match what the CSV
output (and the database itself) holds.

Signed-off-by: Charlie Tonneslan <cst0520@gmail.com>
2026-05-18 11:08:36 -04:00
..
__init__.py prepare_connection plugin hook 2023-07-22 15:59:08 -07:00
__main__.py Support 'python -m sqlite_utils', closes #368 2022-01-08 18:33:22 -08:00
cli.py cli: output JSON without escaping non-ASCII characters 2026-05-18 11:08:36 -04:00
db.py Test against Python 3.15-dev, bump ty and Black (#738) 2026-05-17 16:52:48 -07:00
hookspecs.py More type annotations (#697) 2025-12-16 22:11:47 -08:00
plugins.py More type annotations (#697) 2025-12-16 22:11:47 -08:00
py.typed py.typed file so mypy picks up the types, closes #331 2021-11-14 15:21:04 -08:00
recipes.py More type annotations (#697) 2025-12-16 22:11:47 -08:00
utils.py Test against Python 3.15-dev, bump ty and Black (#738) 2026-05-17 16:52:48 -07:00