UnicodeDecodeError, invalid continuation byte

前端 未结 10 2195
忘掉有多难
忘掉有多难 2020-11-22 08:25

Why is the below item failing? Why does it succeed with "latin-1" codec?

o = "a test of \\xe9 char" #I want this to remain a string as thi         


        
10条回答
  •  感动是毒
    2020-11-22 09:16

    If this error arises when manipulating a file that was just opened, check to see if you opened it in 'rb' mode

提交回复
热议问题