Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for isSupportedCharset (0.08 sec)

  1. fess-crawler/src/test/java/org/codelibs/fess/crawler/transformer/impl/HtmlTransformerTest.java

            assertTrue(htmlTransformer.isSupportedCharset("UTF-8"));
            assertTrue(htmlTransformer.isSupportedCharset("EUC-JP"));
            assertTrue(htmlTransformer.isSupportedCharset("Shift_JIS"));
        }
    
        public void test_isSupportedCharset_invalid() {
            assertFalse(htmlTransformer.isSupportedCharset("aaa"));
            assertFalse(htmlTransformer.isSupportedCharset(" "));
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  2. fess-crawler/src/main/java/org/codelibs/fess/crawler/transformer/impl/HtmlTransformer.java

                        responseData.setCharSet(defaultEncoding);
                    }
                } else {
                    responseData.setCharSet(encoding.trim());
                }
    
                if (!isSupportedCharset(responseData.getCharSet())) {
                    responseData.setCharSet(Constants.UTF_8);
                }
            } catch (final CrawlerSystemException e) {
                throw e;
            } catch (final Exception e) {
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Oct 24 12:16:00 UTC 2024
    - 19.4K bytes
    - Viewed (0)
Back to top