Searched refs:BOM_UTF8 (Results 1 – 11 of 11) sorted by relevance
15 return (codecs.BOM_UTF8 + codecs.utf_8_encode(input, errors)[0], len(input))19 if input[:3] == codecs.BOM_UTF8:33 return codecs.BOM_UTF8 + codecs.utf_8_encode(input, self.errors)[0]55 if codecs.BOM_UTF8.startswith(input):63 if input[:3] == codecs.BOM_UTF8:94 if codecs.BOM_UTF8.startswith(input):98 elif input[:3] == codecs.BOM_UTF8:
9 from codecs import BOM_UTF8282 if chars.startswith(BOM_UTF8):290 self.fileencoding = BOM_UTF8421 if self.fileencoding == BOM_UTF8 or failed:422 return BOM_UTF8 + chars.encode("utf-8")433 return BOM_UTF8 + chars.encode("utf-8")440 return BOM_UTF8 + chars.encode("utf-8")448 chars = BOM_UTF8 + chars.encode("utf-8")
24 bom=codecs.BOM_UTF8
223 has_bom = line1.startswith(codecs.BOM_UTF8)225 line1 = line1[len(codecs.BOM_UTF8):]
182 if text.startswith(codecs.BOM_UTF8):183 text = text[len(codecs.BOM_UTF8):]
33 from codecs import BOM_UTF8, lookup303 if first.startswith(BOM_UTF8):
282 self.assertTrue(data.startswith(codecs.BOM_UTF8))
42 BOM_UTF8 = '\xef\xbb\xbf' variable
839 bytestring = codecs.BOM_UTF8 + "ABC\xC2\xA1\xE2\x88\x80XYZ"
309 BOM_UTF8
5564 - Constants BOM_UTF8, BOM_UTF16, BOM_UTF16_LE, BOM_UTF16_BE,