Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Invalid
-
0.7
-
None
-
None
Description
AutoDetectParser.parse() does this:
MediaType type = detector.detect(stream, metadata);
metadata.set(Metadata.CONTENT_TYPE, type.toString());
So the charset in the Metadata.CONTENT_TYPE is blown away. On entry to the parser, it should pick this apart and set the Metadata.CONTENT_ENCODING if it's null, and the content-type has charset info.