aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tools/example_gallery/main.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/example_gallery/main.py b/tools/example_gallery/main.py
index 1b66b5668..8dc0789fa 100644
--- a/tools/example_gallery/main.py
+++ b/tools/example_gallery/main.py
@@ -271,7 +271,7 @@ def get_module_gallery(examples):
print(f"example_gallery: No .rst or .md file found in {original_dir}")
continue
- with original_file.open("r") as f:
+ with original_file.open("r", encoding="utf-8") as f:
# Read the first line
first_line = f.readline().strip()