Commit d4bfe2c8 authored by Walter Dörwald's avatar Walter Dörwald

SF patch #1364946: Add a reference link from the dcoumentation of the encode

and decode methods to the documentation of the default error handlers.
parent 9356fb98
...@@ -212,7 +212,7 @@ The others represent the BOM in UTF-8 and UTF-32 encodings. ...@@ -212,7 +212,7 @@ The others represent the BOM in UTF-8 and UTF-32 encodings.
\end{datadesc} \end{datadesc}
\subsection{Codec Base Classes} \subsection{Codec Base Classes \label{codec-base-classes}}
The \module{codecs} module defines a set of base classes which define the The \module{codecs} module defines a set of base classes which define the
interface and can also be used to easily write you own codecs for use interface and can also be used to easily write you own codecs for use
......
...@@ -590,7 +590,7 @@ may be given to set a different error handling scheme. The default is ...@@ -590,7 +590,7 @@ may be given to set a different error handling scheme. The default is
\code{'strict'}, meaning that encoding errors raise \code{'strict'}, meaning that encoding errors raise
\exception{UnicodeError}. Other possible values are \code{'ignore'}, \exception{UnicodeError}. Other possible values are \code{'ignore'},
\code{'replace'} and any other name registered via \code{'replace'} and any other name registered via
\function{codecs.register_error}. \function{codecs.register_error}, see section~\ref{codec-base-classes}.
\versionadded{2.2} \versionadded{2.2}
\versionchanged[Support for other error handling schemes added]{2.3} \versionchanged[Support for other error handling schemes added]{2.3}
\end{methoddesc} \end{methoddesc}
...@@ -602,7 +602,8 @@ error handling scheme. The default for \var{errors} is ...@@ -602,7 +602,8 @@ error handling scheme. The default for \var{errors} is
\code{'strict'}, meaning that encoding errors raise a \code{'strict'}, meaning that encoding errors raise a
\exception{UnicodeError}. Other possible values are \code{'ignore'}, \exception{UnicodeError}. Other possible values are \code{'ignore'},
\code{'replace'}, \code{'xmlcharrefreplace'}, \code{'backslashreplace'} \code{'replace'}, \code{'xmlcharrefreplace'}, \code{'backslashreplace'}
and any other name registered via \function{codecs.register_error}. and any other name registered via \function{codecs.register_error},
see section~\ref{codec-base-classes}.
For a list of possible encodings, see section~\ref{standard-encodings}. For a list of possible encodings, see section~\ref{standard-encodings}.
\versionadded{2.0} \versionadded{2.0}
\versionchanged[Support for \code{'xmlcharrefreplace'} and \versionchanged[Support for \code{'xmlcharrefreplace'} and
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment