Skip to content

Commit 29c53e7

Browse files
committed
docs: Add the reference of HTML spec document and W3C document
1 parent 2b066f7 commit 29c53e7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Doc/library/urllib.request.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1227,10 +1227,12 @@ it receives from the HTTP server. In general, a program will decode
12271227
the returned bytes object to string once it determines or guesses
12281228
the appropriate encoding.
12291229

1230-
The following W3C document, https://www.w3.org/International/questions/qa-html-encoding-declarations\ , lists
1230+
The following HTML spec document, https://html.spec.whatwg.org/#charset\ , lists
12311231
the various ways in which an HTML document could have specified its
12321232
encoding information.
12331233

1234+
For additional information, see the W3C document: https://www.w3.org/International/questions/qa-html-encoding-declarations\ .
1235+
12341236
As the python.org website uses *utf-8* encoding as specified in its meta tag, we
12351237
will use the same for decoding the bytes object::
12361238

0 commit comments

Comments
 (0)