SynthText_Chinese_version
SynthText_Chinese_version copied to clipboard
UnicodeDecodeError:'utf-8' codec can't decode byte 0xab in position 45:invalide start byte
it seems like my OS doesn't support chinese characters, and you mentioned this issue in your readme. Could you tell me how to fix this problem? looking forward to your reply, thanks!
@youngboy52 I got the same error.
At text_utils.py
, line 543, add encoding='utf-8'
:
with open(fc,'r',encoding='utf-8') as f:
fixed it!
@Eurus-Holmes I got same problem and try your solution. But it seems not solved. Is this the problem of python version? My python version is 2.7.
Looking forward to your reply, thanks!
@EricChenYJ My python version is 3.7. My updated code is here.
@Eurus-Holmes I got that's a version problem for some package or function. It confused me for a period.... Thanks for your help : )