From f20d6761e8c30433fce022cfba2b78f832213329 Mon Sep 17 00:00:00 2001 From: Jamie Snape Date: Fri, 15 Jan 2021 18:45:18 -0500 Subject: [PATCH] Explicitly set encoding when opening files in system_doxygen.py (#14536) --- doc/system_doxygen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/system_doxygen.py b/doc/system_doxygen.py index bd8f1bbc2f6d..07442b527cba 100755 --- a/doc/system_doxygen.py +++ b/doc/system_doxygen.py @@ -134,7 +134,7 @@ def process_doxygen_system_tags(s): raise RuntimeError(f"Wrong number of arguments.\n{__doc__}") # Load the file in batch into a string. - with open(sys.argv[1], 'r') as f: + with open(sys.argv[1], 'r', encoding='utf-8') as f: s = f.read() s = process_doxygen_system_tags(s)