Lines Matching refs:charset
439 def find_codec(self, charset): argument
440 value = (self._codec(self.CHARSET_ALIASES.get(charset, charset))
441 or (charset and self._codec(charset.replace("-", "")))
442 or (charset and self._codec(charset.replace("-", "_")))
443 or (charset and charset.lower())
444 or charset
450 def _codec(self, charset): argument
451 if not charset:
452 return charset
455 codecs.lookup(charset)
456 codec = charset