node-dbf icon indicating copy to clipboard operation
node-dbf copied to clipboard

Fix field parse

Open easeway opened this issue 12 years ago • 1 comments

For String fields, DBF doesn't always encodes it as UTF-8, normally plain ANSI. So remove 'utf-8' from parameter. For Number fields, parseFloat should be used instead of parseInt.

easeway avatar May 02 '13 15:05 easeway

It's not always ANSI too, so #7 is more preferrable, though even more brief variant is possible, https://github.com/irandom/node-dbf/commit/66ae4b338070c4615f3faa372d319d1ba4a0d13f. If I manage to add tests and if the author still maintains the package I will request a pull from my fork.

irandom avatar Jun 06 '14 05:06 irandom