python抓网页中文乱码有关问题

python抓网页中文乱码问题import urllib2import syscontent urllib2.urlopen(http://www.higis.cn).re

python抓网页中文乱码问题

import urllib2import syscontent = urllib2.urlopen("http://www.higis.cn").read()   #网站页面是utf-8编码的。type = sys.getfilesystemencoding()   # 关键print content.decode("UTF-8").encode(type)  # 关键
?