albertvillanova HF staff commited on
Commit
73ba5e0
1 Parent(s): 4b5eae4

Fix encoding

Browse files
Files changed (1) hide show
  1. XFUN.py +1 -1
XFUN.py CHANGED
@@ -138,7 +138,7 @@ class XFUN(datasets.GeneratorBasedBuilder):
138
  def _generate_examples(self, filepaths):
139
  for filepath in filepaths:
140
  logger.info("Generating examples from = %s", filepath)
141
- with open(filepath[0], "r") as f:
142
  data = json.load(f)
143
 
144
  for doc in data["documents"]:
 
138
  def _generate_examples(self, filepaths):
139
  for filepath in filepaths:
140
  logger.info("Generating examples from = %s", filepath)
141
+ with open(filepath[0], "r", encoding="utf-8") as f:
142
  data = json.load(f)
143
 
144
  for doc in data["documents"]: