when writing python crawler (python3), the string obtained in the web page is encoded by utf-8:
how to convert these utf-8 encodings into intelligible strings?
I have thought about using the decode function, but only the bytes type can call the decode function, and the string of codes I have here is actually of type string.
for example:
-sharp
mystery = b"\xe5\x88\xab"
x = mystery.decode("utf-8")
-sharp
mystery = "\xe5\x88\xab"
x = mystery.decode("utf-8")