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, e.g.'replace'to replace bad characters with question marks,'ignore'to ignore bad characters, etc…
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents