[
https://issues.apache.org/jira/browse/TIKA-1262?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jeremy McLain updated TIKA-1262:
--------------------------------
Description:
The code that demonstrates this bug can be found in attachment:
ChineseTextExtraction.java
This code detects 'application/octet-stream' for the Content-Type and returns
an empty string for the contents. It should detect 'text/plain' for the
Content-Type and return a Unicode string of the contents of the file.
GB2312 is a very common charset and encoding.
was:
The code that demonstrates this bug can be found in attachment:
This code detects 'application/octet-stream' for the Content-Type and returns
an empty string for the contents. It should detect 'text/plain' for the
Content-Type and return a Unicode string of the contents of the file. I don't
see a way to attach files here so I'll update this once I get the file uploaded
somewhere.
> parseToString fails to detect content-type / charset for GB2312 text file
> -------------------------------------------------------------------------
>
> Key: TIKA-1262
> URL: https://issues.apache.org/jira/browse/TIKA-1262
> Project: Tika
> Issue Type: Bug
> Components: detector
> Affects Versions: 1.5
> Environment: Java 1.7; Windows 7 64 bit
> Reporter: Jeremy McLain
> Attachments: ChineseTextExtraction.java, GB2312.txt
>
>
> The code that demonstrates this bug can be found in attachment:
> ChineseTextExtraction.java
> This code detects 'application/octet-stream' for the Content-Type and returns
> an empty string for the contents. It should detect 'text/plain' for the
> Content-Type and return a Unicode string of the contents of the file.
> GB2312 is a very common charset and encoding.
--
This message was sent by Atlassian JIRA
(v6.2#6252)