nutch-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Federico Bonelli (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (NUTCH-2254) Charset issues when using -addBinaryContent and -base64 options
Date Thu, 21 Apr 2016 12:42:25 GMT

    [ https://issues.apache.org/jira/browse/NUTCH-2254?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15251833#comment-15251833
] 

Federico Bonelli edited comment on NUTCH-2254 at 4/21/16 12:41 PM:
-------------------------------------------------------------------

The proposed patch "base64-nutch.patch" skips a double conversion of byte[] to String to byte[]
again before base64 encoding everything.

This patches against official apache-nutch-1.11-src sources.

NOTE: my first patch submission in JIRA/NUTCH, probably the patch format is wrong


was (Author: fedechicco):
The proposed patch skips a double conversion of byte[] to String to byte[] again before base64
encoding everything.

NOTE: my first patch submission in JIRA/NUTCH, probably the patch format is wrong

> Charset issues when using -addBinaryContent and -base64 options
> ---------------------------------------------------------------
>
>                 Key: NUTCH-2254
>                 URL: https://issues.apache.org/jira/browse/NUTCH-2254
>             Project: Nutch
>          Issue Type: Bug
>          Components: indexer
>    Affects Versions: 1.11
>            Reporter: Federico Bonelli
>            Priority: Minor
>         Attachments: base64-nutch.patch
>
>
> The bug is reproducible with these steps:
> # find a site with cp1252 encoded pages like "http://www.ilsole24ore.com/" and characters
with accents (byte representation >127, like [àèéìòù])
> # start a crawl on that site indexing on Solr with options -addBinaryContent -base64
> # find a document inside the newly indexed Solr collection with those accented characters
> # get the base64 binary representation for said html page and decode it back to raw binary,
save it
> The file obtained will have invalid characters, which are neither UTF-8 nor cp1252.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message