summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorEli Bendersky <eliben@gmail.com>2012-07-13 06:52:39 (GMT)
committerEli Bendersky <eliben@gmail.com>2012-07-13 06:52:39 (GMT)
commit8a80502d2c80e4af771136bf7cefb6ecd7c7df4a (patch)
treeff3789e4a75380a867728f64d9c48fdd3aab945b /Doc/library
parentb674dcf53eb2d17929214b042506c18df85a53d5 (diff)
downloadcpython-8a80502d2c80e4af771136bf7cefb6ecd7c7df4a.zip
cpython-8a80502d2c80e4af771136bf7cefb6ecd7c7df4a.tar.gz
cpython-8a80502d2c80e4af771136bf7cefb6ecd7c7df4a.tar.bz2
Issue #15296: Fix minidom.toxml/toprettyxml for non-unicode encodings. Patch by Serhiy Storchaka, with some minor style adjustments by me.
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/xml.dom.minidom.rst7
1 files changed, 1 insertions, 6 deletions
diff --git a/Doc/library/xml.dom.minidom.rst b/Doc/library/xml.dom.minidom.rst
index ae286b0..a5c6fb2 100644
--- a/Doc/library/xml.dom.minidom.rst
+++ b/Doc/library/xml.dom.minidom.rst
@@ -147,12 +147,7 @@ module documentation. This section lists the differences between the API and
the DOM node.
With an explicit *encoding* [1]_ argument, the result is a byte
- string in the specified encoding. It is recommended that you
- always specify an encoding; you may use any encoding you like, but
- an argument of "utf-8" is the most common choice, avoiding
- :exc:`UnicodeError` exceptions in case of unrepresentable text
- data.
-
+ string in the specified encoding.
With no *encoding* argument, the result is a Unicode string, and the
XML declaration in the resulting string does not specify an
encoding. Encoding this string in an encoding other than UTF-8 is