Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for addEncodingMapping (0.11 sec)

  1. fess-crawler/src/test/java/org/codelibs/fess/crawler/helper/EncodingHelperTest.java

            enc = "S-JIS";
            assertEquals("S-JIS", encodingHelper.normalize(enc));
        }
    
        public void test_normalize_map() {
            String enc;
    
            encodingHelper.addEncodingMapping("S-JIS", "Shift_JIS");
    
            enc = "UTF-8";
            assertEquals("UTF-8", encodingHelper.normalize(enc));
    
            enc = "Shift_JIS";
            assertEquals("Shift_JIS", encodingHelper.normalize(enc));
    
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  2. fess-crawler/src/main/java/org/codelibs/fess/crawler/helper/EncodingHelper.java

                return enc;
            }
            return newEnc;
        }
    
        public void setDefaultEncoding(final String defaultEncoding) {
            this.defaultEncoding = defaultEncoding;
        }
    
        public void addEncodingMapping(final String source, final String target) {
            encodingMap.put(toLowerCase(source), target);
        }
    
        protected String toLowerCase(final String enc) {
            return enc.toLowerCase(Locale.ROOT);
        }
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 1.6K bytes
    - Viewed (0)
Back to top