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

网站出现UnicodeDecodeError: 'gbk' codec can't decode byte 0xae 问题解决 #12

Open
xiaojp opened this issue Jul 9, 2019 · 1 comment

Comments

@xiaojp
Copy link

xiaojp commented Jul 9, 2019

  1. core/filter.py
    file_object = open('filter/filter_domain.txt') 修改为 file_object = open('filter/filter_domain.txt','r',encoding="utf-8")
    file_object = open('filter/filter_title.txt') 修改为 file_object = open('filter/filter_title.txt')
    2.core/outdata.py
    file_handle = open(filepath, 'a') 修改为 file_handle = open(filepath, 'a',encoding="utf-8")
@Mrhhhhhhx
Copy link

谢谢老哥

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