Skip to content

Commit a68a3e2

Browse files
author
jukaradayi
committed
force utf8 encoding in analyze.py to avoid crash due to IPA symbol"
1 parent 2dc2cff commit a68a3e2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ABXpy/analyze.py

+3
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,10 @@
4040
from ABXpy.misc.type_fitting import fit_integer_type
4141
import os
4242
import warnings
43+
import sys
4344

45+
reload(sys)
46+
sys.setdefaultencoding('utf8')
4447

4548
def npdecode(keys, max_ind):
4649
"""Vectorized implementation of the decoding of the labels:

0 commit comments

Comments
 (0)