首页 > 技术文章 > python ascii编码重新编码为unicode
apple2016 2021-01-07 10:06 原文
if chardet.detect(str(l))['encoding'] == 'ascii': l = l.decode("ascii").encode("unicode_escape")