- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for parseCharset (0.08 sec)
-
fess-crawler/src/test/java/org/codelibs/fess/crawler/transformer/impl/HtmlTransformerTest.java
content = "...;charset=Shift_JIS\"..."; assertEquals("Shift_JIS", htmlTransformer.parseCharset(content)); content = "...;Charset=Shift_JIS\"..."; assertEquals("Shift_JIS", htmlTransformer.parseCharset(content)); content = "...;charset=EUC-JP\"..."; assertEquals("EUC-JP", htmlTransformer.parseCharset(content)); }
Registered: Sun Nov 10 03:50:12 UTC 2024 - Last Modified: Thu Feb 22 01:36:27 UTC 2024 - 13.8K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/transformer/impl/HtmlTransformer.java
final int size = bis.read(buffer); if (size != -1) { final String content = new String(buffer, 0, size); encoding = parseCharset(content); } } catch (final IOException e) { throw new CrawlingAccessException("Could not load a content.", e); } return normalizeEncoding(encoding); }
Registered: Sun Nov 10 03:50:12 UTC 2024 - Last Modified: Thu Oct 24 12:16:00 UTC 2024 - 19.4K bytes - Viewed (0) -
guava/src/com/google/common/net/MediaType.java
} MediaType mediaType = new MediaType(type, subtype, builder.build()); // if the attribute isn't charset, we can just inherit the current parsedCharset if (!normalizedAttribute.equals(CHARSET_ATTRIBUTE)) { mediaType.parsedCharset = this.parsedCharset; } // Return one of the constants if the media type is a known type. return MoreObjects.firstNonNull(KNOWN_TYPES.get(mediaType), mediaType); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Sep 26 19:15:09 UTC 2024 - 47.5K bytes - Viewed (0)