python character encoding conversion
PHPz
PHPz 2017-05-18 11:02:10
0
2
819

py code:

Page html structure:

Return result:

[u'xe7x89x88xe3x80x80xe3x80x80xe6x9cxacxefxbcx9a']

What character encoding is this? How to convert it to the version number in html?

PHPz
PHPz

学习是最好的投资!

reply all(2)
phpcn_u1582

This encoding is the way Chinese characters are stored in lists. You can try printing out the members of the list individually:

print softcontent[0]
黄舟
print softcontent[0]
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!