Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MetaData Can not recognize Chinese #17

Open
jiangzif opened this issue Jul 29, 2015 · 6 comments
Open

MetaData Can not recognize Chinese #17

jiangzif opened this issue Jul 29, 2015 · 6 comments

Comments

@jiangzif
Copy link

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

@jiangzif
Copy link
Author

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));
        }
......

@iryndin
Copy link
Owner

iryndin commented Oct 29, 2015

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?

@jiangzif
Copy link
Author

jiangzif commented Dec 2, 2015

dont upload dbf file!

@iryndin
Copy link
Owner

iryndin commented Dec 2, 2015

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!

@jiangzif
Copy link
Author

jiangzif commented Dec 3, 2015

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

@tballison
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants