--- lib/HTML/Encoding.pm.orig 2011-03-27 14:53:03.000000000 -0700
+++ lib/HTML/Encoding.pm 2011-03-27 15:28:44.000000000 -0700
-The interface and implementation are guranteed to change before this
+The interface and implementation are guaranteed to change before this
module reaches version 1.00! Please send feedback to the author of
HTML::Encoding helps to determine the encoding of HTML and XML/XHTML
-Most routines need to know some suspected character encodings which
+Most routines need to know some suspected character encodings; these
can be provided through the C<encodings> option. This option always
-defaults to the $HTML::Encoding::DEFAULT_ENCODINGS array reference
+defaults to the $HTML::Encoding::DEFAULT_ENCODINGS array reference,
which means the following encodings are considered by default:
-If you change the values or pass custom values to the routines note
+If you change the values or pass custom values to the routines, note
that L<Encode> must support them in order for this module to work
C<encoding_from_xml_document>, C<encoding_from_html_document>, and
C<encoding_from_http_message> return in list context the encoding
-source and the encoding name, possible encoding sources are
+source and the encoding name. Possible encoding sources are:
* protocol (Content-Type: text/html;charset=encoding)
-Routines exported by this module at user option. By default, nothing
+Routines may be exported by this module at the user's option. By
+default, nothing is exported.
=item encoding_from_content_type($content_type)
Takes a byte string and uses L<HTTP::Headers::Util> to extract the
-charset parameter from the C<Content-Type> header value and returns
+charset parameter from the C<Content-Type> header value. Returns
its value or C<undef> (or an empty list in list context) if there
is no such value. Only the first component will be examined