You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tika.apache.org by "Piotr Bartosiewicz (JIRA)" <ji...@apache.org> on 2010/11/18 08:42:14 UTC
[jira] Commented: (TIKA-422) Wrong charset conversion in some RTF
documents.
[ https://issues.apache.org/jira/browse/TIKA-422?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12933340#action_12933340 ]
Piotr Bartosiewicz commented on TIKA-422:
-----------------------------------------
Patch looks OK except one thing. Patched rtf woks much slower than the original because for every document the temporary file is created. The stream should be stored in memory for a small documents - see how it is done in tika.utils.RereadableInputStream.
> Wrong charset conversion in some RTF documents.
> -----------------------------------------------
>
> Key: TIKA-422
> URL: https://issues.apache.org/jira/browse/TIKA-422
> Project: Tika
> Issue Type: Bug
> Components: parser
> Affects Versions: 0.7
> Reporter: Piotr Bartosiewicz
> Attachments: RTFParser.patch, RTFParser.patch, RTFParser.patch, RTFParser.patch, test-windows-1250.rtf, test_with_curly_brackets.rtf
>
>
> RTF parser uses javax.swing.text.rtf, but it sucks.
> It doesn't support '\ansicpg' tag (cite from RTF file format specification:
> "This keyword represents the default ANSI code page used to perform the Unicode to ANSI conversion when writing RTF text").
> Unfortunately Windows WordPad saves nonascii characters using \ansicpg instead of supported by javax.swing.text.rtf unicode characters.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.