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

Tika does not use the HTML5 meta charset tag when determining charset

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.2
    • 1.2
    • parser
    • None
    • Any

    Description

      HTML5 introduced a new way of specifying the charset for an HTML document:
      <meta charset="utf-8"/>

      The code in HtmlParser only looks for the HTML4 style meta http-equiv tag:
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

      Attachments

        1. tika-html5.patch
          4 kB
          Chris Jones

        Activity

          People

            jukkaz Jukka Zitting
            tortoise Chris Jones
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: