yunify / qingcloud-sdk-python

QingCloud SDK for Python
Apache License 2.0
54 stars 49 forks source link

fix get_utf8_value() #31

Closed wr1241 closed 7 years ago

wr1241 commented 7 years ago

在python2里,执行str(u'你好')会抛出异常。 所以如果value已经是unicode了,就不要进行转换。