Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Doc/library/urllib.parse.rst
Original file line number Diff line number Diff line change
Expand Up @@ -748,7 +748,7 @@ task isn't already covered by the URL parsing functions above.

*encoding* defaults to ``'utf-8'``.
*errors* defaults to ``'replace'``, meaning invalid sequences are replaced
by a placeholder character.
by ``�`` (U+FFFD, the official REPLACEMENT CHARACTER).

Example: ``unquote('/El%20Ni%C3%B1o/')`` yields ``'/El Niño/'``.

Expand Down
2 changes: 1 addition & 1 deletion Lib/urllib/parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -861,7 +861,7 @@ def unquote(string, encoding='utf-8', errors='replace'):
sequences into Unicode characters, as accepted by the bytes.decode()
method.
By default, percent-encoded sequences are decoded with UTF-8, and invalid
sequences are replaced by a placeholder character.
sequences are replaced by U+FFFD (REPLACEMENT CHARACTER).

unquote('abc%20def') -> 'abc def'.
"""
Expand Down
Loading