Closed GoogleCodeExporter closed 9 years ago
I think there may be an issue with the .dbf file you uploaded not being a
standards compliant.
Here is the hexdump of the header for said file.
00000000 03 0b 03 1e 02 00 00 00 81 00 fb 02 00 00 00 00 |................|
00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 c9 00 00 |................|
00000020 cf f0 e8 ec e5 f7 e0 ed e8 ff 00 43 00 00 00 00 |...........C....|
00000030 fe 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000040 cd ee ec e5 f0 5f e2 5f c3 c8 d1 43 00 00 00 00 |....._._...C....|
00000050 fe 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000060 cd ee ec e5 f0 5f ee e1 fa e5 ea 43 00 00 00 00 |....._.....C....|
00000070 fe 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
The part being addressed in this bit of code deals with 0020-002A, 0040-004A,
and 0060-006A. According to the .dbf specification, the ASCII strings at those
locations in the file will be terminated with a \x00. The file you submitted
only does this for the first record (at 002A). Also, none of your field names
are in ASCII, for what it's worth.
My vote is to not include this patch, but I'm not in charge.
Original comment by ledere...@gmail.com
on 18 Apr 2011 at 11:26
> I think there may be an issue with the .dbf file you uploaded not being a
standards compliant.
Unfortunately I have a lot of .dbf files with same issue. These files was
produced by Autodesk AutoCAD Map and ESRI ArcMAP. And yes, field names (worse -
file names) is russian words in cp1251 encoding. My patch let me work with that
crap.
What else can I do? It's a part of our project.
Original comment by vasn...@gmail.com
on 19 Apr 2011 at 12:03
Original issue reported on code.google.com by
vasn...@gmail.com
on 3 Apr 2011 at 11:07Attachments: