From the conclusion, "-" is the cause, so "-"
somestring.replace("-", "-")
>>> "-".encode("utf-8") #Cause of Error b'\xef\xbc\x8d' >>> "-".encode("utf-8") b'\xe3\x83\xbc'
Complicated
Recommended Posts