diff options
author | Adam Turner <9087854+AA-Turner@users.noreply.github.com> | 2022-04-18 02:32:06 +0100 |
---|---|---|
committer | Adam Turner <9087854+AA-Turner@users.noreply.github.com> | 2022-04-22 04:21:12 +0100 |
commit | 55669f6cfc03e96cee236dc9b9cdeb1deb31cef0 (patch) | |
tree | 4578b4b0b93346e2356de779cf4c0c06f31e0668 /sphinx/util/docutils.py | |
parent | c08bffde98391a193debbeaee9af8c4f5ef8c77f (diff) | |
download | sphinx-git-55669f6cfc03e96cee236dc9b9cdeb1deb31cef0.tar.gz |
Specify encoding
Diffstat (limited to 'sphinx/util/docutils.py')
-rw-r--r-- | sphinx/util/docutils.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sphinx/util/docutils.py b/sphinx/util/docutils.py index f954c81d5..e46525183 100644 --- a/sphinx/util/docutils.py +++ b/sphinx/util/docutils.py @@ -338,6 +338,7 @@ class SphinxFileOutput(FileOutput): def __init__(self, **kwargs: Any) -> None: self.overwrite_if_changed = kwargs.pop('overwrite_if_changed', False) + kwargs.setdefault('encoding', 'utf-8') super().__init__(**kwargs) def write(self, data: str) -> str: |