Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
ea64a6a4
Kaydet (Commit)
ea64a6a4
authored
Tem 25, 2010
tarafından
Andrew M. Kuchling
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#7637: clarify description of encoding parameter
üst
bd6c0795
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
14 deletions
+19
-14
xml.dom.minidom.rst
Doc/library/xml.dom.minidom.rst
+19
-14
No files found.
Doc/library/xml.dom.minidom.rst
Dosyayı görüntüle @
ea64a6a4
...
@@ -136,18 +136,20 @@ module documentation. This section lists the differences between the API and
...
@@ -136,18 +136,20 @@ module documentation. This section lists the differences between the API and
..
method
::
Node
.
toxml
(
encoding
=
None
)
..
method
::
Node
.
toxml
(
encoding
=
None
)
Return
the
XML
that
the
DOM
represents
as
a
string
.
Return
a
string
or
byte
string
containing
the
XML
represented
by
the
DOM
node
.
With
no
argument
,
the
XML
header
does
not
specify
an
encoding
,
and
the
result
is
With
an
explicit
*
encoding
*
[
1
]
_
argument
,
the
result
is
a
byte
Unicode
string
if
the
default
encoding
cannot
represent
all
characters
in
the
string
in
the
specified
encoding
.
It
is
recommended
that
you
document
.
Encoding
this
string
in
an
encoding
other
than
UTF
-
8
is
likely
always
specify
an
encoding
;
you
may
use
any
encoding
you
like
,
but
incorrect
,
since
UTF
-
8
is
the
default
encoding
of
XML
.
an
argument
of
"utf-8"
is
the
most
common
,
avoid
:
exc
:`
UnicodeError
`
exceptions
in
case
of
unrepresentable
text
With
an
explicit
*
encoding
*
[
1
]
_
argument
,
the
result
is
a
byte
string
in
the
data
.
specified
encoding
.
It
is
recommended
that
this
argument
is
always
specified
.
To
avoid
:
exc
:`
UnicodeError
`
exceptions
in
case
of
unrepresentable
text
data
,
the
encoding
argument
should
be
specified
as
"utf-8"
.
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
likely
incorrect
,
since
UTF
-
8
is
the
default
encoding
of
XML
.
..
method
::
Node
.
toprettyxml
(
indent
=
""
,
newl
=
""
,
encoding
=
""
)
..
method
::
Node
.
toprettyxml
(
indent
=
""
,
newl
=
""
,
encoding
=
""
)
...
@@ -155,7 +157,8 @@ module documentation. This section lists the differences between the API and
...
@@ -155,7 +157,8 @@ module documentation. This section lists the differences between the API and
indentation
string
and
defaults
to
a
tabulator
;
*
newl
*
specifies
the
string
indentation
string
and
defaults
to
a
tabulator
;
*
newl
*
specifies
the
string
emitted
at
the
end
of
each
line
and
defaults
to
``\
n
``.
emitted
at
the
end
of
each
line
and
defaults
to
``\
n
``.
There
's also an *encoding* argument; see :meth:`toxml`.
There
's also an *encoding* argument, that behaves like the corresponding
argument of :meth:`toxml`.
.. _dom-example:
.. _dom-example:
...
@@ -240,7 +243,9 @@ utility to most DOM users.
...
@@ -240,7 +243,9 @@ utility to most DOM users.
..
rubric
::
Footnotes
..
rubric
::
Footnotes
..
[#]
The
encoding
string
included
in
XML
output
should
conform
to
the
..
[#]
The
encoding
name
included
in
the
XML
output
should
conform
to
appropriate
standards
.
For
example
,
"UTF-8"
is
valid
,
but
"UTF8"
is
the
appropriate
standards
.
For
example
,
"UTF-8"
is
valid
,
but
not
.
See
http
://
www
.
w3
.
org
/
TR
/
2006
/
REC
-
xml11
-
20060816
/#
NT
-
EncodingDecl
"UTF8"
is
not
valid
in
an
XML
document
's declaration, even though
Python accepts it as an encoding name.
See http://www.w3.org/TR/2006/REC-xml11-20060816/#NT-EncodingDecl
and http://www.iana.org/assignments/character-sets .
and http://www.iana.org/assignments/character-sets .
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment