标签:utf-8 style span bsp pre string str decode code
#coding:utf-8 import urllib legal_person_string = "%E6%B3%95%E5%AE%9A%E4%BB%A3%E8%A1%A8%E4%BA%BA" legal_person_string = legal_person_string.decode("gbk").encode(‘utf-8‘) legal_person_caption = urllib.unquote(legal_person_string) print(legal_person_caption)
标签:utf-8 style span bsp pre string str decode code
原文地址:http://www.cnblogs.com/themost/p/7484308.html