Skip to content

Commit 5acdf30

Browse files
committed
v0.4.16
1 parent 676eb32 commit 5acdf30

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

README_EN.md

+4
Original file line numberDiff line numberDiff line change
@@ -587,6 +587,10 @@ $ python -m pytest
587587

588588
## ChangeLog
589589

590+
**v0.4.16**
591+
592+
Fix: `read_json` default use `UTF-8`.
593+
590594
**v0.4.14-15**
591595

592596
Fix: Number as part of sub sentence.

pnlp/piop.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ def read_csv(fpath: str, delimiter: str = ",") -> List:
172172

173173

174174
def read_json(fpath: str, **kwargs) -> Union[List, Dict]:
175-
with open(fpath, "r") as fin:
175+
with open(fpath, "r", encoding="utf-8") as fin:
176176
data = json.load(fin, **kwargs)
177177
return data
178178

0 commit comments

Comments
 (0)