Skip to content

Read CLI JSON data as UTF-8 - #640

Closed
bubaizhanshen wants to merge 1 commit into
elapouya:masterfrom
bubaizhanshen:read-json-utf8
Closed

Read CLI JSON data as UTF-8#640
bubaizhanshen wants to merge 1 commit into
elapouya:masterfrom
bubaizhanshen:read-json-utf8

Conversation

@bubaizhanshen

@bubaizhanshen bubaizhanshen commented Jun 1, 2026

Copy link
Copy Markdown

Fixes #516.

This reads JSON input files with an explicit UTF-8 encoding in the module CLI. It also adds a regression script that renders UTF-8 JSON data under an ASCII locale and verifies the output text.

Tests:

  • ./env/bin/python tests/module_execute_utf8_json.py
  • cd tests && PATH="$PWD/../env/bin:$PATH" ../env/bin/python runtests.py
  • LC_ALL=C ./env/bin/python -m flake8 . --exclude=env --jobs=1 --count --max-line-length=127 --show-source --statistics
  • git diff --check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Wrong encoding when runned via module

1 participant