TencentYouTu / python_sdk

python_sdk for TencentYoutuyun-person-face-service
MIT License
65 stars 23 forks source link

返回的数据啥编码啊? #2

Closed wingfordream closed 8 years ago

wingfordream commented 8 years ago

返回的tag_name对应的值:u'\xe5\xae\xa0\xe7\x89\xa9',我用utf8解码都是乱码啊!

ret = youtu.imagetag("1.jpg", data_type = 0, seq = '') print ret["tags"][0]["tag_name"].encode('utf8')

wingfordream commented 8 years ago

好吧!ISO-8859-1编码~!~~

zhtsky commented 7 years ago

@wingfordream 那应该怎么转中文呢 在python3中