[ 
https://issues.apache.org/jira/browse/TIKA-352?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12791094#action_12791094
 ] 

Ken Krugler commented on TIKA-352:
----------------------------------

Hi Jukka - I'd changed MediaType.parse to handle a null string, to simplify the 
code in TXTParser and HtmlParser. So I think it should work properly unless I 
missed something.

Thanks,

-- Ken

> Use MediaType.parse when extracting charset from content-type metadata in 
> parsers
> ---------------------------------------------------------------------------------
>
>                 Key: TIKA-352
>                 URL: https://issues.apache.org/jira/browse/TIKA-352
>             Project: Tika
>          Issue Type: Improvement
>    Affects Versions: 0.6
>            Reporter: Ken Krugler
>            Assignee: Jukka Zitting
>            Priority: Minor
>             Fix For: 0.6
>
>         Attachments: TIKA-352.patch
>
>
> Both HtmlParser and TXTParser have their own code to extract the charset from 
> a content-type metadata string. They should be using MediaType.parse to do 
> this.

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

Reply via email to