Iam confused about the Encode/Decode and Quote/Unqote methods of the String class. For what are these methods? In wich context do Iam need them? I have read the documentation but they are insufficient for me. Has anyone a better explanation for me?
Encode
Encodes the given string using the framework’s standard encoding (a slight variant on Base64 which ensures that the string can be safely used as part of a URL).
Decode
Decodes a string previously encoded using Encode.
Quote
Replaces special characters in using the %xx escape. Letters, digits, and the characters _.- are never quoted. If usePlus is True, spaces are escaped as a plus character instead of %20.
Unquote
Replace %xx escapes by their single-character equivalent. If usePlus is True, plus characters are replaced with spaces.