jdbf icon indicating copy to clipboard operation
jdbf copied to clipboard

MetaData Can not recognize Chinese

Open jiangzif opened this issue 9 years ago • 6 comments

When the ‘DBF’ file have Chinese headers,Can not recognize

jiangzif avatar Jul 29 '15 05:07 jiangzif

I think I have solved this problem: Change “class DbfMetadataUtils”

public static DbfField createDbfField(byte[] fieldBytes) {
        DbfField field = new DbfField();
        // 1. Set name
        {
            int i = 0;
            for (i = 0; i < 11 && fieldBytes[i] != 0; i++) ;
            field.setName(new String(fieldBytes, 0, i));
        }
......

jiangzif avatar Jul 29 '15 06:07 jiangzif

Hi @jiangzif ! Sorry for answering you so late! Could you please provide this workaround as pull request and provide also unit test for that? And could you please provide DBF files with Chinis headers?

iryndin avatar Oct 29 '15 13:10 iryndin

dont upload dbf file!

jiangzif avatar Dec 02 '15 10:12 jiangzif

Hi @jiangzif, please put this DBF file on any cloud storage (like Dropbox or Google Drive) and write here a comment with link to this file. If you don't want to share this file in public, you can send me a link via email: iryndin DOG gmail DOT com. Thank you!

iryndin avatar Dec 02 '15 17:12 iryndin

Hi @iryndin, Googgle Drive share: https://drive.google.com/file/d/0B_iFsy40WRVvSS02ZmhSOXhHQ2M/view?usp=sharing I've sent you an email。

jiangzif avatar Dec 03 '15 02:12 jiangzif

@jiangzif , would you mind if we added your file as a test case to Apache Tika for TIKA-1513?

tballison avatar May 25 '16 17:05 tballison