[
https://issues.apache.org/jira/browse/TIKA-4370?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17922088#comment-17922088
]
Subbu commented on TIKA-4370:
-----------------------------
[~tallison] thanks for the response.
Right, The problem is not specific to text file vs binary. I am trying to
detect Shift-JIS encoded file types and as the magic bytes are mostly UTF8
based we get back application/octet-stream without file names.
Do you think it's worthwhile for me to consider something like, trying to
convert input to Shift-JIS and using for prefix in
[https://github.com/apache/tika/blob/9a6bda5fadcc4c287926ec3361c6f398d113eab0/tika-core/src/main/java/org/apache/tika/mime/MimeTypes.java#L527?]
Or some other way to support Shift-JIS that could be a starting point?
> SJIS Encoded Files Can't be Detected
> ------------------------------------
>
> Key: TIKA-4370
> URL: https://issues.apache.org/jira/browse/TIKA-4370
> Project: Tika
> Issue Type: Bug
> Reporter: Subbu
> Priority: Major
>
> When character encoding of file is SJIS, without file name in the metadata,
> most files content-type detected as application/octet-stream. Is there zero
> support for SJIS?
--
This message was sent by Atlassian Jira
(v8.20.10#820010)