UnicodeDecodeError: Invalid Start Byte
I have a quick question about UnicodeDecodeError:invalid start byte. I think somewhere in my text has non-UTF-8 Character, but location of error message is the starting point of re
Solution 1:
I had the same issue and after searching for a while what i did
import sys
#Set default encoder
sys.setdefaultencoding("ISO-8859-1")
#Then convert string to UTF-8
yourString.encode('utf-8').strip()
I hope it will be useful to someone
Post a Comment for "UnicodeDecodeError: Invalid Start Byte"