You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tika.apache.org by "Ken Krugler (JIRA)" <ji...@apache.org> on 2010/03/11 15:53:27 UTC

[jira] Updated: (TIKA-387) htmlparser throws IllegalCharsetNameException

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

Ken Krugler updated TIKA-387:
-----------------------------

    Attachment: CharsetUtils.java

Piotr - thanks for reporting this. I'd run into the same issue, and created some utilities in Bixo that I'd forgotten needed to be rolled into Tika.

I've attached the file, will turn this into a patch soon.

This also contains code that fixes up common "broken charset name" problems I'd run into while using Bixo to do a big crawl.

> htmlparser throws IllegalCharsetNameException
> ---------------------------------------------
>
>                 Key: TIKA-387
>                 URL: https://issues.apache.org/jira/browse/TIKA-387
>             Project: Tika
>          Issue Type: Bug
>          Components: parser
>    Affects Versions: 0.6
>            Reporter: Piotr B.
>         Attachments: CharsetUtils.java
>
>
> Charset.isSupported throws IllegalCharsetNameException if charset name is malformed. HtmlParser tries to retrieve a charset from http_equiv section, so tika shouldn't suppose this charset to be valid and should catch that exception.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.