

CodePudding user response:
Feeling is written and read the code type does not matchCodePudding user response:
Don't like utf-8 data, why is \ x00?CodePudding user response:
Python decode () method to encoding the specified encoding format decoding string, the default encoding for string coding,Syntax
Decode () method syntax:
STR. Decode (encoding="utf-8", errors='strict')
Parameter
Encoding - coding is used, such as "utf-8",
Errors - set different error handling scheme, defaults to "strict", meaning coding errors cause a UnicodeError, other possible values have 'ignore', 'replace', 'xmlcharrefreplace', 'backslashreplace and codecs. Register_error () the registration of any value,
Can consider to ignore, but best and data communication, unified coding