From 579bc16be58cfaf426c4b0c9782182775ab3013e Mon Sep 17 00:00:00 2001 From: anakin87 <44616784+anakin87@users.noreply.github.com> Date: Tue, 25 Aug 2020 15:27:17 +0200 Subject: [PATCH] Update core.py Correct method camelot.core.Table.to_html --- camelot/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/camelot/core.py b/camelot/core.py index 3ea2c5e..fdc2ae3 100644 --- a/camelot/core.py +++ b/camelot/core.py @@ -631,7 +631,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):