Lines Matching full:encoding
3 Standard Python encoding modules are stored in this package
6 Codec modules must have names corresponding to normalized encoding
20 * getaliases() -> sequence of encoding name strings to use as aliases
22 Alias names returned by getaliases() must be normalized encoding
43 def normalize_encoding(encoding): argument
45 """ Normalize an encoding name.
52 Note that encoding names should be ASCII only.
55 if isinstance(encoding, bytes):
56 encoding = str(encoding, "ascii")
60 for c in encoding:
71 def search_function(encoding): argument
74 entry = _cache.get(encoding, _unknown)
80 # First try to find an alias for the normalized encoding
85 norm_encoding = normalize_encoding(encoding)
118 _cache[encoding] = None
139 _cache[encoding] = entry
163 def _alias_mbcs(encoding): argument
167 if encoding == ansi_code_page: