MCPcopy Index your code
hub / github.com/python/cpython / setEncoding

Method setEncoding

Lib/xml/sax/xmlreader.py:226–234  ·  view source on GitHub ↗

Sets the character encoding of this InputSource. The encoding must be a string acceptable for an XML encoding declaration (see section 4.3.3 of the XML recommendation). The encoding attribute of the InputSource is ignored if the InputSource also contains a character

(self, encoding)

Source from the content-addressed store, hash-verified

224 return self.__system_id
225
226 def setEncoding(self, encoding):
227 """Sets the character encoding of this InputSource.
228
229 The encoding must be a string acceptable for an XML encoding
230 declaration (see section 4.3.3 of the XML recommendation).
231
232 The encoding attribute of the InputSource is ignored if the
233 InputSource also contains a character stream."""
234 self.__encoding = encoding
235
236 def getEncoding(self):
237 "Get the character encoding of this InputSource."

Callers 1

Calls

no outgoing calls

Tested by 1