SynthText_Chinese_version icon indicating copy to clipboard operation
SynthText_Chinese_version copied to clipboard

UnicodeDecodeError:'utf-8' codec can't decode byte 0xab in position 45:invalide start byte

Open youngboy52 opened this issue 3 years ago • 4 comments

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 avatar Aug 20 '20 03:08 youngboy52

@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 avatar Aug 26 '20 10:08 Eurus-Holmes

@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!

licyj avatar Oct 14 '20 09:10 licyj

@EricChenYJ My python version is 3.7. My updated code is here.

Eurus-Holmes avatar Oct 14 '20 10:10 Eurus-Holmes

@Eurus-Holmes I got that's a version problem for some package or function. It confused me for a period.... Thanks for your help : )

licyj avatar Oct 15 '20 05:10 licyj