Home
last modified time | relevance | path

Searched refs:newEncoding (Results 1 – 3 of 3) sorted by relevance

/external/chromium-trace/catapult/third_party/html5lib-python/html5lib/
Dinputstream.py507 def changeEncoding(self, newEncoding): argument
509 newEncoding = codecName(newEncoding)
510 if newEncoding in ("utf-16", "utf-16-be", "utf-16-le"):
511 newEncoding = "utf-8"
512 if newEncoding is None:
514 elif newEncoding == self.charEncoding[0]:
519 self.charEncoding = (newEncoding, "certain")
520 … raise ReparseException("Encoding changed from %s to %s" % (self.charEncoding[0], newEncoding))
/external/apache-xml/src/main/java/org/apache/xml/serializer/
DToStream.java407 String newEncoding = val; in setProp() local
419 … (defaultVal && ( oldDefaultEncoding == null || !oldDefaultEncoding.equalsIgnoreCase(newEncoding))) in setProp()
420 …aultVal && (oldExplicitEncoding == null || !oldExplicitEncoding.equalsIgnoreCase(newEncoding) ))) { in setProp()
424 EncodingInfo encodingInfo = Encodings.getEncodingInfo(newEncoding); in setProp()
425 if (newEncoding != null && encodingInfo.name == null) { in setProp()
430 MsgKey.ER_ENCODING_NOT_SUPPORTED,new Object[]{ newEncoding }); in setProp()
433 "Warning: encoding \"" + newEncoding + "\" not supported, using " in setProp()
462 newEncoding = Encodings.DEFAULT_MIME_ENCODING; in setProp()
464 encodingInfo = Encodings.getEncodingInfo(newEncoding); in setProp()
475 if (newEncoding != null) in setProp()
[all …]
/external/expat/lib/
Dxmlparse.c3472 const ENCODING *newEncoding = NULL; in processXmlDecl() local
3487 &newEncoding, in processXmlDecl()
3525 if (newEncoding) { in processXmlDecl()
3526 if (newEncoding->minBytesPerChar != encoding->minBytesPerChar) { in processXmlDecl()
3530 encoding = newEncoding; in processXmlDecl()