Here is a way to fix that problem.
add the two lines at the top of the script:
#!/usr/bin/env python# -*- coding:utf-8 -*-
Add the lines to the beginning import of the script:
import sys reload(sys) sys.setdefaultencoding('utf-8')Add the header in the get function like below.
It will solve the problem.
No comments:
Post a Comment