diff --git a/camelot/core.py b/camelot/core.py index e82a11ff..587e33b5 100644 --- a/camelot/core.py +++ b/camelot/core.py @@ -590,7 +590,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='utf8', errors='ignore') as f: f.write(html_string) def to_sqlite(self, path, **kwargs):