From 165b6e085519715e11fc238009856e66e576b8da Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Fri, 17 Feb 2023 13:46:16 -0500 Subject: [PATCH] Supply encoding. Fixes #621. --- src/furo/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/furo/__init__.py b/src/furo/__init__.py index 049b0aecb..fc957a75b 100644 --- a/src/furo/__init__.py +++ b/src/furo/__init__.py @@ -384,7 +384,7 @@ def _overwrite_pygments_css( return assert app.builder - with open(os.path.join(app.builder.outdir, "_static", "pygments.css"), "w") as f: + with open(os.path.join(app.builder.outdir, "_static", "pygments.css"), "w", encoding='utf-8') as f: f.write(get_pygments_stylesheet())