Skip to content

Conversation

@easeway
Copy link

@easeway easeway commented May 2, 2013

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.

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.
@irandom
Copy link
Contributor

irandom commented Jun 6, 2014

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.

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

Successfully merging this pull request may close these issues.

2 participants