From 8dbbc8d1aed81eed82977098690c6a27e6e39e1a Mon Sep 17 00:00:00 2001 From: Yue Yang Date: Wed, 3 Dec 2025 01:50:01 +0800 Subject: [PATCH 1/2] Reconfigure stdin encoding to UTF-8 --- src/resources/jupyter/jupyter.py | 1 + 1 file changed, 1 insertion(+) 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"] From ed9d4531876b2df1345097f699dc09e39d2bf3f0 Mon Sep 17 00:00:00 2001 From: Christophe Dervieux Date: Wed, 14 Jan 2026 16:44:58 +0100 Subject: [PATCH 2/2] Add changelog entry --- news/changelog-1.9.md | 6 ++++++ 1 file changed, 6 insertions(+) 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.