Jun-05-2018, 09:09 AM
- Use the method decode on bytes to decode to str (unicode)
- Use the method encode on str to encode to bytes.
- A str object does not have the method decode. It is already decoded.
- A bytes object does not have the method encode. It is already encoded.
Then the standard complains:
- don't use upper case in variable names, try not to use names like Str
- post your code in code tags (BB-Code in the forum)
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
All humans together. We don't need politicians!