Raises a \exception{LookupError} in case the encoding cannot be found.
\end{funcdesc}
-To simplify working with encoded files or stream, the module
-also defines these utility functions:
-
\begin{funcdesc}{register_error}{name, error_handler}
Register the error handling function \var{error_handler} under the
name \var{name}. \var{error_handler} will be called during encoding
Implements the \code{backslashreplace} error handling.
\end{funcdesc}
+To simplify working with encoded files or stream, the module
+also defines these utility functions:
+
\begin{funcdesc}{open}{filename, mode\optional{, encoding\optional{,
errors\optional{, buffering}}}}
Open an encoded file using the given \var{mode} and return