Unicode and bytes
suggest changeSyntax
str.encode(encoding, errors='strict')bytes.decode(encoding, errors='strict')open(filename, mode, encoding=None)
Parameters
encoding| The encoding to use, e.g.'ascii','utf8', etc…errors| The errors mode. For encoding,'replace'uses?and'ignore'drops characters that the encoding cannot represent. For decoding,'replace'uses U+FFFD.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents