Python3 Unicode and Bytes Mixed Strings to UTF-8

后端 未结 0 1732
独厮守ぢ
独厮守ぢ 2021-01-17 17:25

I have a bytes and unicode mixed string

strng = \'It is unicode \\u2013 byte mixed \\xe2\\x80\\x98\'
strng = strng.encode(\'utf-8\')         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题