Uploaded image for project: 'Tika'
  1. Tika
  2. TIKA-544

AutoDetectParser ignores charset in Content-Type metadata

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Invalid
    • 0.7
    • 0.8
    • 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.

      Attachments

        Activity

          People

            kkrugler Kenneth William Krugler
            kkrugler Kenneth William Krugler
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: