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

UTF-8 encoded XML is detected as text/plain because of UTF-8 BOM

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.1
    • Fix Version/s: None
    • Component/s: mime
    • Labels:
      None

      Description

      Detection of XML fails when encoded as UTF-8. The UTF-8 BOM: 0xEF,0xBB,0xBF causes the XML detector to fail when trying to match "<?xml" at the beginning of the input stream.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              wtaylor Wade Taylor
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: