Class EncodingTest

    • Constructor Detail

      • EncodingTest

        public EncodingTest()
    • Method Detail

      • testEncodingHTML_ISO_8859_1

        public void testEncodingHTML_ISO_8859_1()
                                         throws Exception
        Throws:
        Exception
      • testEncodingHTML_UTF_8

        public void testEncodingHTML_UTF_8()
                                    throws Exception
        Throws:
        Exception
      • testEncodingHTML_UTF_8_DeclarationAfterTitle

        public void testEncodingHTML_UTF_8_DeclarationAfterTitle()
                                                          throws Exception
        Known issue: NekoHTML does not auto-detect the encoding, but relies on the explicitly specified encoding (via XML declaration or HTTP-Equiv meta header). If the meta header comes *after* the title element, then NekoHTML will not use the declared encoding for the title. For this test we expect to not recognize the title.
        Throws:
        Exception - if there is an error asserting the test data.
      • testEncodingXHTML_ISO_8859_1

        public void testEncodingXHTML_ISO_8859_1()
                                          throws Exception
        Throws:
        Exception
      • testEncodingXHTML_UTF_8

        public void testEncodingXHTML_UTF_8()
                                     throws Exception
        Throws:
        Exception