diff --git a/camelot/core.py b/camelot/core.py index 3ea2c5e1..fdc2ae3a 100644 --- a/camelot/core.py +++ b/camelot/core.py @@ -631,7 +631,7 @@ def to_html(self, path, **kwargs): """ html_string = self.df.to_html(**kwargs) - with open(path, "w") as f: + with open(path, "w", encoding="utf-8") as f: f.write(html_string) def to_sqlite(self, path, **kwargs):