import urllib
def geturltoutf8(srcString):
unquotedString = urllib.unquote(srcString)
#print repr(unquotedString)
textString = unquotedString.decode('utf-8')
#print textString
return textString
python定义的接口在接收请求时,请求参数乱码解决方法
最新推荐文章于 2024-01-25 11:56:25 发布