TypeError: Can't convert 'bytes' object to str implicitly


#1

for status in statuses:
    if status.lang =='en':
      text += status.text.encode('utf-8')

line 3 return error in my IDE. python 3.5
TypeError: Can't convert 'bytes' object to str implicitly


#2

Unicode handling differs quite a lot between python2 and python3, If that code is targetting python2 then you're better off running it with a python2 interpreter.


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.