From cedd12232b4ab1d286fc43ca31a1fb4dc79564a5 Mon Sep 17 00:00:00 2001 From: KOLANICH Date: Tue, 16 Jul 2019 17:04:04 +0300 Subject: [PATCH] Fixed encoding trouble --- camelot/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/camelot/core.py b/camelot/core.py index b7a02b1..3b0a5ad 100644 --- a/camelot/core.py +++ b/camelot/core.py @@ -632,7 +632,7 @@ class Table(object): """ 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):