Hello everyone, meet again, I'm your friend Quanstack Jun.
importurllib2importsyscontent=urllib2.urlopen('http://xxx.com').read()#the webpage is encoded by uft-8type=sys.getfilesystemencoding()#importantprintcontent.decode("UTF-8").encode(type)#important
Publisher: Full-stack programmer, please indicate the source: https://javaforall.cn/127938.htmlOriginal link: https://javaforall.cn