I tried to understand encode and decode in Python itself, but nothing is clear to me.
str.encode([encoding,[errors]])str.decode([encoding,[errors]])
First, I don’t understand the need for “coding” in these two functions.
What is the result of each function, its encoding? What is the use of the "encoding" parameter in each function? I really don't understand the definition of a string of bytes.
I have an important question, is there a way to move from one encoding to another? I read some text in ASN.1 about the "octet string", so I wondered if it was the same as the "byte string".
Thanks for the help.
python string unicode decode encode
Narcisse doudieu siewe
source share