diff --git a/news/changelog-1.9.md b/news/changelog-1.9.md index 14f341aa6d9..9c327bc5e1d 100644 --- a/news/changelog-1.9.md +++ b/news/changelog-1.9.md @@ -114,6 +114,12 @@ All changes included in 1.9: - New **Engine Extensions**, to allow other execution engines than knitr, jupyter, julia. Julia is now a bundled extension. See [the prerelease notes](https://prerelease.quarto.org/docs/prerelease/1.9/) and [engine extension documentation](https://prerelease.quarto.org/docs/extensions/engine.html). +## Engines + +### `jupyter` + +- ([#13748](https://github.com/quarto-dev/quarto-cli/pull/13748)): Fix stdin encoding to UTF-8 on Windows to correctly handle JSON in documents containing non-ASCII characters. + ## Other fixes and improvements - ([#8730](https://github.com/quarto-dev/quarto-cli/issues/8730)): Detect x64 R crashes on Windows ARM and provide helpful error message directing users to install native ARM64 R instead of showing generic "check your R installation" error. diff --git a/src/resources/jupyter/jupyter.py b/src/resources/jupyter/jupyter.py index a865e2082ba..b28cf387f64 100644 --- a/src/resources/jupyter/jupyter.py +++ b/src/resources/jupyter/jupyter.py @@ -255,6 +255,7 @@ def status(msg): del os.environ["QUARTO_JUPYTER_OPTIONS"] # otherwise read from stdin else: + sys.stdin.reconfigure(encoding='utf-8') input = json.load(sys.stdin) command = input["command"] options = input["options"]