python操作sqlserver解决中文乱码的问题

str1.encode('latin-1').decode('gbk'))
str1是乱码的字符

 

posted @ 2020-09-08 11:47  阿磊小哥哥呀  阅读(1622)  评论(0编辑  收藏  举报