You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tika.apache.org by "Jukka Zitting (JIRA)" <ji...@apache.org> on 2012/07/09 01:29:34 UTC

[jira] [Resolved] (TIKA-892) Tika does not use the HTML5 meta charset tag when determining charset

     [ https://issues.apache.org/jira/browse/TIKA-892?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jukka Zitting resolved TIKA-892.
--------------------------------

       Resolution: Fixed
    Fix Version/s: 1.2
         Assignee: Jukka Zitting  (was: Ken Krugler)

Thanks! I committed the patch in revision 1358872.
                
> Tika does not use the HTML5 meta charset tag when determining charset
> ---------------------------------------------------------------------
>
>                 Key: TIKA-892
>                 URL: https://issues.apache.org/jira/browse/TIKA-892
>             Project: Tika
>          Issue Type: Improvement
>          Components: parser
>    Affects Versions: 1.2
>         Environment: Any
>            Reporter: Chris Jones
>            Assignee: Jukka Zitting
>             Fix For: 1.2
>
>         Attachments: tika-html5.patch
>
>
> 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" />

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira