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

打开文件编码问题 #1

Open
bkfish opened this issue May 12, 2019 · 0 comments
Open

打开文件编码问题 #1

bkfish opened this issue May 12, 2019 · 0 comments

Comments

@bkfish
Copy link

bkfish commented May 12, 2019

直接git clone 到本地运行有报错

UnicodeDecodeError: 'gbk' codec can't decode byte 0xb5 in position 2: illegal multibyte sequence

可以在prepare_data.py文件中第27行改为

    with open(resource_path(os.path.join('resources', 'name.txt')), 'r', encoding='UTF-8') as f:
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

1 participant