Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

训练时出现编码问题 #44

Open
fengli70421 opened this issue Apr 4, 2018 · 2 comments
Open

训练时出现编码问题 #44

fengli70421 opened this issue Apr 4, 2018 · 2 comments

Comments

@fengli70421
Copy link

fengli70421 commented Apr 4, 2018

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa3 in position 0: invalid start byte
将train改成true会在codecs.py里出现这个问题

@fengli70421
Copy link
Author

我解决了,办法就是尽可能在每一个open(file)里都加上encoding=‘utf8'

@jefferyship
Copy link

[root@server2 ~]# cat /etc/sysconfig/i18n
LANG="zh_CN.GB18030"
SUPPORTED="zh_CN.GB18030:zh_CN:zh:en_US.UTF-8:en_US:en"
SYSFONT="latarcyrheb-sun16"

解决终端编码不支持问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants