From 059c992214f943663f63cdafa18afdf2ca60d2d2 Mon Sep 17 00:00:00 2001 From: Yue Yang Date: Wed, 3 Dec 2025 01:50:01 +0800 Subject: [PATCH] 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"]