Lines Matching refs:encode
113 return obj.encode(encoding, errors)
140 def encode(self, encoding='ascii', errors='strict'):
141 return self._encoded_counterpart(*(x.encode(encoding, errors) for x in self))
360 # Set up the encode/decode result pairs
636 string = string.encode('utf-8')
646 _hextobyte = {(a + b).encode(): bytes.fromhex(a + b)
876 non-ASCII characters, as accepted by the str.encode method.
887 string = string.encode(encoding, errors)
928 safe = safe.encode('ascii', 'ignore')
1030 url = url.encode("ASCII").decode()