Adding encoding to `open` in`to_json`
parent
d1db9bd443
commit
d8c6d0eb77
|
|
@ -599,7 +599,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):
|
||||
|
|
|
|||
Loading…
Reference in New Issue