Lines Matching refs:encoding

90         return "<%s.%s object for encoding %s at 0x%x>" % (self.__class__.__module__, self.__class__.__name__, self.name, id(self))
105 decoding and '?' on encoding.
107 character reference (only for encoding).
109 (only for encoding).
124 make encoding/decoding efficient.
147 make encoding/decoding efficient.
315 # interfaces which can be used to implement new encoding submodules
339 sequences (only for encoding).
448 definition of the encoding and the given size, e.g. if
449 optional encoding endings or state markers are available
649 encoding = 'unknown'
728 view of encoding data.
766 used as intermediate encoding.
841 def open(filename, mode='rb', encoding=None, errors='strict', buffering=1):
844 a wrapped version providing transparent encoding/decoding.
856 encoding specifies the encoding which is to be used for the
861 encoding error occurs.
867 .encoding which allows querying the used encoding. This
868 attribute is only available if an encoding was specified as
872 if encoding is not None:
882 if encoding is None:
884 info = lookup(encoding)
887 srw.encoding = encoding
893 encoding translation.
897 file as string using file_encoding. The intermediate encoding
907 encoding error occurs.
928 def getencoder(encoding):
930 """ Lookup up the codec for the given encoding and return
933 Raises a LookupError in case the encoding cannot be found.
936 return lookup(encoding).encode
938 def getdecoder(encoding):
940 """ Lookup up the codec for the given encoding and return
943 Raises a LookupError in case the encoding cannot be found.
946 return lookup(encoding).decode
948 def getincrementalencoder(encoding):
950 """ Lookup up the codec for the given encoding and return
953 Raises a LookupError in case the encoding cannot be found
957 encoder = lookup(encoding).incrementalencoder
959 raise LookupError(encoding)
962 def getincrementaldecoder(encoding):
964 """ Lookup up the codec for the given encoding and return
967 Raises a LookupError in case the encoding cannot be found
971 decoder = lookup(encoding).incrementaldecoder
973 raise LookupError(encoding)
976 def getreader(encoding):
978 """ Lookup up the codec for the given encoding and return
981 Raises a LookupError in case the encoding cannot be found.
984 return lookup(encoding).streamreader
986 def getwriter(encoding):
988 """ Lookup up the codec for the given encoding and return
991 Raises a LookupError in case the encoding cannot be found.
994 return lookup(encoding).streamwriter
996 def iterencode(iterator, encoding, errors='strict', **kwargs):
1005 encoder = getincrementalencoder(encoding)(errors, **kwargs)
1014 def iterdecode(iterator, encoding, errors='strict', **kwargs):
1023 decoder = getincrementaldecoder(encoding)(errors, **kwargs)
1049 """ Creates an encoding map from a decoding map.