diff --git a/camelot/core.py b/camelot/core.py index 58a98ef..3a437b2 100644 --- a/camelot/core.py +++ b/camelot/core.py @@ -1,5 +1,7 @@ # -*- coding: utf-8 -*- +from __future__ import absolute_import +from io import open import os import sqlite3 import zipfile @@ -592,7 +594,7 @@ class Table(object): kw = {"orient": "records"} kw.update(kwargs) json_string = self.df.to_json(**kw) - with open(path, "w") as f: + with open(path, "w", encoding="utf-8") as f: f.write(json_string) def to_excel(self, path, **kwargs):