jdbf
jdbf copied to clipboard
MetaData Can not recognize Chinese
When the ‘DBF’ file have Chinese headers,Can not recognize
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));
}
......
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?
dont upload dbf file!
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!
Hi @iryndin, Googgle Drive share: https://drive.google.com/file/d/0B_iFsy40WRVvSS02ZmhSOXhHQ2M/view?usp=sharing I've sent you an email。
@jiangzif , would you mind if we added your file as a test case to Apache Tika for TIKA-1513?