ascii编码转utf8编码,适用于python2

def ascii2utf8(ascii):
    line = eval(("'" + ascii.strip() + "'"))
    return line

 

posted @ 2018-07-18 10:55  失落的黎明  阅读(1835)  评论(0编辑  收藏  举报